Sign in to follow this  
Followers 0
SteveO

HTTP POST + COOKIES?

3 posts in this topic

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

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

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  
Followers 0