| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
Cache and Request Header
From: David Colter <dolan2go_at_yahoo.com>
Date: Mon, 4 Feb 2008 17:10:49 -0800 (PST)
Two questions to resolve the same issue.
I am accessing a frame page within a secure site, that also performs a 'screen-scraper' function to get the latest info from another source. ( I haven't figured out the Java yet to bypass this site ) Problem is, when I use a browser to view the page, which has a time stamp of the current time, it's always updated. When I use my script, the time stamp is a day or two previous version I've seen in the (same) browser.
So, I've tried adding CURLOPT_FRESH_CONNECT, TRUE to all but the first request. There are no cookies being stored in my cookie jar and this seems good, since I don't want to reuse an old connection. But I'd like to know how to see what CURL requests from the server. I can see the response and the CURLOPT_HTTPHEADER that the script creates, but not the rest. The reason I ask is that I can't compare my script to Live HTTP Headers. I did add Keep-Alive and Connection to the request array.
Here's a sample of the first 2 page requests from Live HTTP Headers:
https://www.aapilots.com/ps_login.asp
POST /ps_login.asp HTTP/1.1
HTTP/1.x 302 Object moved
GET /private/index.asp HTTP/1.1
HTTP/1.x 200 OK
Any suggestions on how to view what is 'requested' or how to get the true latest page? Apologies for this confusing sounding plea for help.
Thanks,
____________________________________________________________________________________
_______________________________________________
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info