cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Help interpreting headers

From: David Colter <dolan2go_at_yahoo.com>
Date: Sat, 1 Dec 2007 16:19:51 -0800 (PST)

Can anyone please help me with the following header info and 3 questions regarding them? Any assistance would be greatly appreciated.

First, in the initial header sent, the last entry is Content-Length: 61 (with on the next line)
  targetURL=&frmLoginUser=354611&frmLoginPass=notthepass&x=37&y=10. My thought is to send it as an additional string in the header along with the Cookie: ASPSESSIONID....
How do I code this when the LiveHTTPheaders Generator seems to be showing it as a query string? (also included below)

Second, any ideas on what the 'x' and 'y' are at the end of that targetURL line? These values come out different each time I submit the form and view the header. I'm stumped as to where it comes from. A form analyzer shows the value of '0'.

Third, the POST to the ps_login.asp page returns a code 302, 3 .asp pages and 12 image files in a corresponding number of headers. In what manner do I need to handle these? Are these redirects?

Sample from LiveHTTPheaders. First 2 of the header blocks refered to above

https://www.aapilots.com/ps_login.asp

POST /ps_login.asp HTTP/1.1
Host: www.aapilots.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.12) Gecko/20070508 Firefox/1.5.0.12
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: https://www.aapilots.com/public/flash/login.asp
Cookie: ASPSESSIONIDCABSBRDD=DNGHOGGAFNOPEADKCICOLHEE
Content-Type: application/x-www-form-urlencoded
Content-Length: 61
targetURL=&frmLoginUser=354611&frmLoginPass=notthepass&x=31&y=2

HTTP/1.x 302 Object moved
Date: Sat, 01 Dec 2007 23:10:35 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Location: private/index.asp
Content-Length: 138
Content-Type: text/html
Set-Cookie: AXCOOKIELOGIN=%3C354611%3EXBTV%2EEgEyK9JEhYJ3ZX98%2F; path=/
Cache-Control: private

https://www.aapilots.com/private/index.asp

GET /private/index.asp HTTP/1.1
Host: www.aapilots.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.12) Gecko/20070508 Firefox/1.5.0.12
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: https://www.aapilots.com/public/flash/login.asp
Cookie: ASPSESSIONIDCABSBRDD=DNGHOGGAFNOPEADKCICOLHEE; AXCOOKIELOGIN=%3C354611%3EXBTV%2EEgEyK9JEhYJ3ZX98%2F

HTTP/1.x 200 OK
Date: Sat, 01 Dec 2007 23:10:35 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Cache-Control: private, private, private, private, private, no-cache
Expires: 0, 0, 0, 0, Fri, 30 Nov 2007 23:10:34 GMT
Pragma: no-cache
Content-Length: 748
Content-Type: text/html

And a portion of the output of the LiveHTTPheader Generator page

#request# POST https://www.aapilots.com/ps_login.asp
POST /ps_login.asp targetURL=&frmLoginUser=354611&frmLoginPass=notthepass&x=31&y=2
#request# GET https://www.aapilots.com/private/index.asp
#request# GET https://www.aapilots.com/private/nav.asp
#request# GET https://www.aapilots.com/private/private_home.asp
GET /private/nav.asp
#request# GET https://www.aapilots.com/private/hierArrays.js
GET /private/hierArrays.js
#request# GET https://www.aapilots.com/private/hierMenus.js
GET /private/hierMenus.js
#request# GET https://www.aapilots.com/images/nav_header.gif .....

Thanks in advance,
David

      ____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-12-02