Jump to content

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/87234-reference-response-header-location/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.