http - c# HttpClient does not store some cookies -


i'm using httpclient (system.net.http.httpcient) send requests , i'm using cookiecontainer hande cookies. webpages works fine, on other pages no cookies stored, although browser saves cookies when visit webpage. can here explain what's problem.

ceddy

maybe these pages redirect other url? cookies stored per url , hence it's possible "loose" cookie.

to verify behavior may set

 request.allowautoredirect = false; 

and @ response object what's going on. if issue in case, can copy cookies 1 url other via cookiecontainer.


Comments

Popular posts from this blog

.htaccess - htaccess convert request to clean url and add slash at the end of the url -

php - facebook and github login HWIOAuthBundle and FOSUserBundle in Symfony2.1 -

hadoop - Sqoop installation export and import from postgresql -