Open ahmedkhan25 opened 9 years ago
FYI.. In Xamarin Forums we can also see other users mention issues with using cookies and ModernHttpClient -e.g. this link:https://forums.xamarin.com/discussion/42410/bug-httpclient-times-out-when-redirected-on-a-post-request
FY2 - I was able to pass in the authentication cookie manually in the request header as described here https://github.com/paulcbetts/ModernHttpClient/issues/118
.. so this works for my code now -still it appears that cookie handling features are broken -either a fix or better documentation is appreciated
Btw - thanks for this library -its really very, very helpful for those of us who are using Xamarin!!
Hi - Would like to see know what's the most up to date way that we can use cookies in ModernHttpClient in Xamarin (iOS/Android)? Documentation on this is sparse and seems to have changed:
Our Code:
We are using ModernHttpClient to access a web service which uses Forms Authentication so we have a 2-step process below to get the client to authenticate and then further use that authenticated cookie based instance to get data from the service
2 - The previous code retrieves the proper cookie we want - But we can't seem to get the resulting calls to actually use it to get data- So the question is - How do we use or set that particular cookie in ModernHttpClient for subsequent GET requests? Should we create a new instance of the HttpClient and pass in the cookie?, should it not automatically use the NativeCookieHandler that we used to authenticate? -Please elaborate -
Thanks!!!