wilm2008 Posted January 22, 2008 Share Posted January 22, 2008 I am writing a script to retrieve POD information from a transport companies website and currently have a script which signs in, goes to the consignment search screen and posts my order details. From what I can gather through Firefox Live HTTP Headers, the website then searches their database for the unique ID related to this record and redirects the browser through to the display page passing only this unique ID through. I can see the header line from the server saying "Location: displaypage.asp?ID=45621773". The response headers I can see through my PHP script are: HTTP/1.1 100 Continue Server: Microsoft-IIS/5.0 Date: Tue, 22 Jan 2008 16:43:42 GMT X-Powered-By: ASP.NET HTTP/1.1 500 Internal Server Error Server: Microsoft-IIS/5.0 Date: Tue, 22 Jan 2008 16:43:42 GMT X-Powered-By: ASP.NET Connection: close Content-Length: 752 Content-Type: text/html Set-Cookie: ASPSESSIONIDQSDCCCBA=************************; path=/ Cache-control: private My assumption is that the first set of headers are everything the browser received before this location: header and the rest are the headers for the redirected page. Is there anyway that I can reference this Location: header so I can get the POST? Quote Link to comment https://forums.phpfreaks.com/topic/87234-reference-response-header-location/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.