Restsharp on WP 7.1 adding cookies

I am trying to add a cookie to a request using RestSharp, but in fiddler2 I do not see that the cookie in the request and service call is not working. Is there a trick to adding a cookie in RestRequest?

RestRequest rq = new RestRequest(LTV.NowNext(), Method.GET); rc.AddDefaultParameter(LTV.cookie.Key, LTV.cookie.Value, ParameterType.Cookie); rc.ExecuteAsync<LTV.nowNext>(rq, (response2) => { if (response2.Data == null) return; foreach (LTV.channel channel in response2.Data.channels) this.Items.Add(new ItemViewModel() { LineOne = channel.name, LineTwo = channel.showing[0].content[0].parent.title, LineThree = channel.showing[1].content[0].parent.title }); }); 

Thanks Al

+4
source share
1 answer

RestSharp has an error on Windows Phone when adding cookies to RestRequest!

I solved the problem and received a transfer request , waiting for their integration with the main branch.

So far, you can overcome this problem using AddHeader ("Cookie", cookieValuesString) ...

+1
source

All Articles