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

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

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