Jump to content

HTTP POST + COOKIES?


Recommended Posts

Is there any way to use HTTP Post with your browsers cookies? I don't have a code example, I'm just asking if it's possible.

Scenario: I want to log into a website, then HTTP POST to go to a page. Whenever I HTTP POST, it doesn't use the cookies from the browser, so technically I'm not even logged in. Is there any way to use HTTP POST with the browsers cookies?

Link to comment
Share on other sites

This might be tricky, you can modify the script here:

#525259

You will need to add a new request header:

$oHTTP.SetRequestHeader('Cookie','key=value')

Here is an example in ASP:

http://blog.netnerds.net/2006/04/asp-susta...using-vbscript/

I think it uses POST to login to whatever website, then it uses the cookie from the returned header on subsequent calls.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...