AutoHotkey Community

It is currently May 26th, 2012, 4:11 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: DownloadToVar problem
PostPosted: April 14th, 2009, 6:12 am 
Offline

Joined: March 17th, 2007, 7:51 pm
Posts: 45
Location: San Antonio, TX
okay, so it was suggest to me to use dtv to get the html of a page so i can regex it for some informaiton, but the problem now is, its not getting the page i need, first i login to the website, then i want to dl the html, but downloadtovar ignores the cookies and inacts a new sessions independent of my COM object, any way around this?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 15th, 2009, 9:41 pm 
Offline

Joined: March 17th, 2007, 7:51 pm
Posts: 45
Location: San Antonio, TX
anyone?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2009, 12:31 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Read the documentation in MSDN:
http://msdn.microsoft.com/en-us/library/aa383979.aspx

I suppose you have to set the cookies through SetRequestHeader. You can obtain the response headers through GetAllResponseHeaders.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2009, 8:44 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7502
Location: Australia
It's even simpler than you think - if you use a single WinHttpRequest object for multiple requests, it persists cookies automatically between requests.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Cerberus, gamax92, poserpro, Yahoo [Bot] and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group