Jump to content
Sign in to follow this  
SteveO

HTTP POST + COOKIES?

Recommended Posts

SteveO

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?


Share this post


Link to post
Share on other sites
weaponx

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.

Share this post


Link to post
Share on other sites
SteveO

Ok, Thanks WeaponX, I'll give this a try. Really appreciate it. =)


Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.