Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I'm trying to send a POST to a website and I need the cookies it's suppose to return, however, it's not returning all the cookies I need. If I do it with my browser I get seven cookies, if I do it with the ASP.NET post I get 2. I've read the headers to make sure .NET just isnt taking all of the cookies out, and there's definately not more than 2. I've tried searching everywhere on the net for similar issues and I'm all run out of ideas for what to try next. Has anyone any ideas?
Posted
I solved my problem, but I have another question too. I figured out that there was an auto redirect from the page I posted to to another page. By disallowing the redirect using the HttpWebRequest.AllowAutoRedirect property I was able to grab the cookies that I needed. However, does anyone know how to grab the cookies both from before teh redirect and after? Or is there not a way?
  • 2 years later...
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...