HTTPS C# POST 302 Moved?

I was stuck on this problem for a long time - so glad I can help. Read this article byteblocks.com/page/How-to-submit-reques... The key issue is that you cannot use HttpWebRequest with automatic redirects enabled to do a login process involving 302s and cookies because the cookies don't get set until the end of the whole process The solution is to disable auto redirects and implement the whole login process manually on a step-by-step basis (get the 'Location' header of 302 redirect responses, as well as the 'Set-cookie' header, and pass these down to successive steps as needed) Your cookie container needs to grab all the cookies along the way and submit them at the end. If you are getting a 302 - you will be hitting your head against the wall wondering why you keep ending up at the login page.

I was stuck on this problem for a long time - so glad I can help. Read this article byteblocks.com/page/How-to-submit-reques... The key issue is that you cannot use HttpWebRequest with automatic redirects enabled to do a login process involving 302s and cookies because the cookies don't get set until the end of the whole process. The solution is to disable auto redirects and implement the whole login process manually on a step-by-step basis (get the 'Location' header of 302 redirect responses, as well as the 'Set-cookie' header, and pass these down to successive steps as needed).

Your cookie container needs to grab all the cookies along the way and submit them at the end. If you are getting a 302 - you will be hitting your head against the wall wondering why you keep ending up at the login page.

Also check this page - may help devnewsgroups.net/group/microsoft.public....

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions