curl-users
Re: script help
Date: Mon, 10 Apr 2006 12:10:17 -0400
You all have been helping with trying to script a login session. The
user experience
1) Key in URL
2) Get password screen
3) enter creds
4) get final page.
But there is alot more going on, I have curl logging in and getting
part of the way but I can't get past step #5. If you see the entire
process below, am I kidding myself trying to write a script that does
all that to load ONE FRICKIN page !!!
New Message Log Window.... for http://wwweb.jawohl.de/wwweb_mensch
+++GET 1+++
GET /wwweb_mensch HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, */*
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)
Host: wwweb.jawohl.de
Connection: keep-alive
+++RESP 1+++
HTTP/1.0 401 Access Denied
Server: Microsoft-IIS/5.0
Date: Mon, 10 Apr 2006 15:51:13 GMT
WWW-Authenticate: Basic realm="wwweb.jawohl.de"
Connection: close
Content-Length: 4431
Content-Type: text/html
Match 1: Kill pop-up windows
Match 1: Suppress all JavaScript errors
Match 1: Stop browser window resizing
<end> 1: Restore pop-ups after a page loads
+++CLOSE 1+++
+++GET 2+++
GET /wwweb_mensch HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, */*
Accept-Language: en-us
Authorization: Basic c2VudGluZWw6U2lsdjNyYmFjaw==
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)
Host: wwweb.jawohl.de
Connection: keep-alive
+++RESP 2+++
HTTP/1.0 302 Object Moved
Location: http://wwweb.jawohl.de/wwweb_mensch/
Server: Microsoft-IIS/5.0
Content-Type: text/html
Content-Length: 165
+++CLOSE 2+++
+++GET 3+++
GET /wwweb_mensch/ HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, */*
Accept-Language: en-us
Authorization: Basic c2VudGluZWw6U2lsdjNyYmFjaw==
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)
Host: wwweb.jawohl.de
Connection: keep-alive
+++RESP 3+++
HTTP/1.0 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 10 Apr 2006 15:51:41 GMT
Content-Length: 445
Content-Type: text/html
Set-Cookie: ASPSESSIONIDQARBADBC=NJIJMMDALEAJKOKFBFOLDMEA; path=/
Match 3: Kill pop-up windows
Match 3: Suppress all JavaScript errors
Match 3: Stop browser window resizing
<end> 3: Restore pop-ups after a page loads
+++CLOSE 3+++
BlockList 4: in Bypass, line 19
+++GET 5+++
POST /stadtweb/login_ldap.asp HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, */*
Referer: http://wwweb.jawohl.de/stadtweb/login_ldap.asp
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)
Host: wwweb.jawohl.de
Content-Length: 17
Pragma: no-cache
Cookie: ASPSESSIONIDQARBADBC=NJIJMMDALEAJKOKFBFOLDMEA
Authorization: Basic c2VudGluZWw6U2lsdjNyYmFjaw==
Connection: keep-alive
Browser reload detected...
Posting 17 bytes...
Continue ignored...
+++RESP 5+++
HTTP/1.0 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 10 Apr 2006 15:51:42 GMT
Content-Length: 659
Content-Type: text/html
Match 5: Kill pop-up windows
Match 5: Suppress all JavaScript errors
Match 5: Stop browser window resizing
<end> 5: Restore pop-ups after a page loads
+++CLOSE 5+++
+++GET 6+++
POST /stadtweb/main.asp HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, */*
Referer: http://wwweb.jawohl.de/stadtweb/main.asp
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)
Host: wwweb.jawohl.de
Content-Length: 66
Pragma: no-cache
Cookie: ASPSESSIONIDQARBADBC=NJIJMMDALEAJKOKFBFOLDMEA
Authorization: Basic c2VudGluZWw6U2lsdjNyYmFjaw==
Connection: keep-alive
Browser reload detected...
Posting 66 bytes...
Continue ignored...
+++RESP 6+++
HTTP/1.0 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 10 Apr 2006 15:51:46 GMT
pragma: no-cache
Content-Length: 8658
Content-Type: text/html
Set-Cookie: cookie%5Fcertificate=82671H3YBI479IPZXISUFJK6135V0366Y33W844R14P8C4SR9LK8XL5SFM691MT7BMLYY0O7816ZE137C15Z0D6VXET6GELV1EOQ;
path=/stadtweb
Match 6: Kill pop-up windows
Match 6: Suppress all JavaScript errors
Match 6: Stop browser window resizing
Match 6: Kill anti-cache meta tags
Match 6: Kill anti-cache meta tags
Match 6: Kill anti-cache meta tags
Match 6: Frame Jumper-Outer
Match 6: Frame Jumper-Outer
Match 6: Frame Jumper-Outer
<end> 6: Restore pop-ups after a page loads
+++CLOSE 6+++
+++GET 7+++
GET /stadtweb/includes/dhtml_lib.inc HTTP/1.0
Accept: */*
Referer: http://wwweb.jawohl.de/stadtweb/includes/dhtml_lib.inc
Accept-Language: en-us
If-Modified-Since: Fri, 06 Feb 2004 20:40:48 GMT
If-None-Match: "0484880f1ecc31:d92"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)
Host: wwweb.jawohl.de
Cookie: cookie%5Fcertificate=82671H3YBI479IPZXISUFJK6135V0366Y33W844R14P8C4SR9LK8XL5SFM691MT7BMLYY0O7816ZE137C15Z0D6VXET6GELV1EOQ;
ASPSESSIONIDQARBADBC=NJIJMMDALEAJKOKFBFOLDMEA
Authorization: Basic c2VudGluZWw6U2lsdjNyYmFjaw==
Connection: keep-alive
+++RESP 7+++
HTTP/1.0 304 Not Modified
Server: Microsoft-IIS/5.0
Date: Mon, 10 Apr 2006 15:51:46 GMT
ETag: "0484880f1ecc31:d92"
Content-Length: 0
+++CLOSE 7+++
+++GET 8+++
GET /stadtweb/includes/openChart.js HTTP/1.0
Accept: */*
Referer: http://wwweb.jawohl.de/stadtweb/includes/openChart.js
Accept-Language: en-us
If-Modified-Since: Fri, 06 Feb 2004 20:40:50 GMT
If-None-Match: "0757981f1ecc31:d92"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)
Host: wwweb.jawohl.de
Cookie: cookie%5Fcertificate=82671H3YBI479IPZXISUFJK6135V0366Y33W844R14P8C4SR9LK8XL5SFM691MT7BMLYY0O7816ZE137C15Z0D6VXET6GELV1EOQ;
ASPSESSIONIDQARBADBC=NJIJMMDALEAJKOKFBFOLDMEA
Authorization: Basic c2VudGluZWw6U2lsdjNyYmFjaw==
Connection: keep-alive
+++RESP 8+++
HTTP/1.0 304 Not Modified
Server: Microsoft-IIS/5.0
Date: Mon, 10 Apr 2006 15:51:46 GMT
ETag: "0757981f1ecc31:d92"
Content-Length: 0
+++CLOSE 8+++
+++GET 9+++
GET /stadtweb/includes/openWindow.js HTTP/1.0
Accept: */*
Referer: http://wwweb.jawohl.de/stadtweb/includes/openWindow.js
Accept-Language: en-us
If-Modified-Since: Fri, 06 Feb 2004 20:40:50 GMT
If-None-Match: "0757981f1ecc31:d92"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)
Host: wwweb.jawohl.de
Cookie: cookie%5Fcertificate=82671H3YBI479IPZXISUFJK6135V0366Y33W844R14P8C4SR9LK8XL5SFM691MT7BMLYY0O7816ZE137C15Z0D6VXET6GELV1EOQ;
ASPSESSIONIDQARBADBC=NJIJMMDALEAJKOKFBFOLDMEA
Authorization: Basic c2VudGluZWw6U2lsdjNyYmFjaw==
Connection: keep-alive
+++RESP 9+++
HTTP/1.0 304 Not Modified
Server: Microsoft-IIS/5.0
Date: Mon, 10 Apr 2006 15:51:46 GMT
ETag: "0757981f1ecc31:d92"
Content-Length: 0
+++CLOSE 9+++
+++GET 10+++
GET /stadtweb/includes/preload_images.js HTTP/1.0
Accept: */*
Referer: http://wwweb.jawohl.de/stadtweb/includes/preload_images.js
Accept-Language: en-us
If-Modified-Since: Fri, 06 Feb 2004 20:40:52 GMT
If-None-Match: "0a2aa82f1ecc31:d92"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)
Host: wwweb.jawohl.de
Cookie: cookie%5Fcertificate=82671H3YBI479IPZXISUFJK6135V0366Y33W844R14P8C4SR9LK8XL5SFM691MT7BMLYY0O7816ZE137C15Z0D6VXET6GELV1EOQ;
ASPSESSIONIDQARBADBC=NJIJMMDALEAJKOKFBFOLDMEA
Authorization: Basic c2VudGluZWw6U2lsdjNyYmFjaw==
Connection: keep-alive
+++RESP 10+++
HTTP/1.0 304 Not Modified
Server: Microsoft-IIS/5.0
Date: Mon, 10 Apr 2006 15:51:46 GMT
ETag: "0a2aa82f1ecc31:d92"
Content-Length: 0
+++CLOSE 10+++
+++GET 11+++
GET /stadtweb/images/closed_folder.gif HTTP/1.0
Accept: */*
Referer: http://wwweb.jawohl.de/stadtweb/images/closed_folder.gif
Accept-Language: en-us
If-Modified-Since: Fri, 06 Feb 2004 20:40:40 GMT
If-None-Match: "094837bf1ecc31:d92"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)
Host: wwweb.jawohl.de
Cookie: cookie%5Fcertificate=82671H3YBI479IPZXISUFJK6135V0366Y33W844R14P8C4SR9LK8XL5SFM691MT7BMLYY0O7816ZE137C15Z0D6VXET6GELV1EOQ;
ASPSESSIONIDQARBADBC=NJIJMMDALEAJKOKFBFOLDMEA
Authorization: Basic c2VudGluZWw6U2lsdjNyYmFjaw==
Connection: keep-alive
+++RESP 11+++
HTTP/1.0 304 Not Modified
Server: Microsoft-IIS/5.0
Date: Mon, 10 Apr 2006 15:51:46 GMT
ETag: "094837bf1ecc31:d92"
Content-Length: 0
+++CLOSE 11+++
+++GET 12+++
GET /stadtweb/images/open_folder.gif HTTP/1.0
Accept: */*
Referer: http://wwweb.jawohl.de/stadtweb/images/open_folder.gif
Accept-Language: en-us
If-Modified-Since: Fri, 06 Feb 2004 20:40:44 GMT
If-None-Match: "0eee57df1ecc31:d92"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)
Host: wwweb.jawohl.de
Cookie: cookie%5Fcertificate=82671H3YBI479IPZXISUFJK6135V0366Y33W844R14P8C4SR9LK8XL5SFM691MT7BMLYY0O7816ZE137C15Z0D6VXET6GELV1EOQ;
ASPSESSIONIDQARBADBC=NJIJMMDALEAJKOKFBFOLDMEA
Authorization: Basic c2VudGluZWw6U2lsdjNyYmFjaw==
Connection: keep-alive
+++GET 13+++
GET /stadtweb/includes/browser_detection.js HTTP/1.0
Accept: */*
Referer: http://wwweb.jawohl.de/stadtweb/includes/browser_detection.js
Accept-Language: en-us
If-Modified-Since: Fri, 06 Feb 2004 20:40:46 GMT
If-None-Match: "01b177ff1ecc31:d92"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)
Host: wwweb.jawohl.de
Cookie: cookie%5Fcertificate=82671H3YBI479IPZXISUFJK6135V0366Y33W844R14P8C4SR9LK8XL5SFM691MT7BMLYY0O7816ZE137C15Z0D6VXET6GELV1EOQ;
ASPSESSIONIDQARBADBC=NJIJMMDALEAJKOKFBFOLDMEA
Authorization: Basic c2VudGluZWw6U2lsdjNyYmFjaw==
Connection: keep-alive
+++RESP 12+++
HTTP/1.0 304 Not Modified
Server: Microsoft-IIS/5.0
Date: Mon, 10 Apr 2006 15:51:46 GMT
ETag: "0eee57df1ecc31:d92"
Content-Length: 0
+++RESP 13+++
HTTP/1.0 304 Not Modified
Server: Microsoft-IIS/5.0
Date: Mon, 10 Apr 2006 15:51:46 GMT
ETag: "01b177ff1ecc31:d92"
Content-Length: 0
+++CLOSE 12+++
+++CLOSE 13+++
+++GET 14+++
GET /images/stadt.jpg HTTP/1.0
Accept: */*
Referer: http://res.jawohl.de/images/stadt.jpg
Accept-Language: en-us
If-Modified-Since: Tue, 26 Oct 2004 20:24:46 GMT
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)
Host: res.jawohl.de
Connection: keep-alive
+++GET 15+++
GET /stadtweb/images/right_red.gif HTTP/1.0
Accept: */*
Referer: http://wwweb.jawohl.de/stadtweb/images/right_red.gif
Accept-Language: en-us
If-Modified-Since: Fri, 06 Feb 2004 20:40:46 GMT
If-None-Match: "01b177ff1ecc31:d92"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)
Host: wwweb.jawohl.de
Cookie: cookie%5Fcertificate=82671H3YBI479IPZXISUFJK6135V0366Y33W844R14P8C4SR9LK8XL5SFM691MT7BMLYY0O7816ZE137C15Z0D6VXET6GELV1EOQ;
ASPSESSIONIDQARBADBC=NJIJMMDALEAJKOKFBFOLDMEA
Authorization: Basic c2VudGluZWw6U2lsdjNyYmFjaw==
Connection: keep-alive
+++RESP 14+++
HTTP/1.0 304 Not Modified
Date: Mon, 10 Apr 2006 15:51:47 GMT
Server: 4D_WebSTAR_S/5.4.0 (MacOS X)
Connection: Keep-Alive
Keep-Alive: max=100, timeout=5
Content-Length: 0
Content-Type: image/jpeg
+++RESP 15+++
HTTP/1.0 304 Not Modified
Server: Microsoft-IIS/5.0
Date: Mon, 10 Apr 2006 15:51:46 GMT
ETag: "01b177ff1ecc31:d92"
Content-Length: 0
+++CLOSE 14+++
+++CLOSE 15+++
+++GET 16+++
GET /stadtweb/images/1.gif HTTP/1.0
Accept: */*
Referer: http://wwweb.jawohl.de/stadtweb/images/1.gif
Accept-Language: en-us
If-Modified-Since: Fri, 06 Feb 2004 20:40:36 GMT
If-None-Match: "03a2179f1ecc31:d92"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)
Host: wwweb.jawohl.de
Cookie: cookie%5Fcertificate=82671H3YBI479IPZXISUFJK6135V0366Y33W844R14P8C4SR9LK8XL5SFM691MT7BMLYY0O7816ZE137C15Z0D6VXET6GELV1EOQ;
ASPSESSIONIDQARBADBC=NJIJMMDALEAJKOKFBFOLDMEA
Authorization: Basic c2VudGluZWw6U2lsdjNyYmFjaw==
Connection: keep-alive
+++GET 17+++
GET /stadtweb/images/bltgreen.gif HTTP/1.0
Accept: */*
Referer: http://wwweb.jawohl.de/stadtweb/images/bltgreen.gif
Accept-Language: en-us
If-Modified-Since: Fri, 06 Feb 2004 20:40:38 GMT
If-None-Match: "067527af1ecc31:d92"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)
Host: wwweb.jawohl.de
Cookie: cookie%5Fcertificate=82671H3YBI479IPZXISUFJK6135V0366Y33W844R14P8C4SR9LK8XL5SFM691MT7BMLYY0O7816ZE137C15Z0D6VXET6GELV1EOQ;
ASPSESSIONIDQARBADBC=NJIJMMDALEAJKOKFBFOLDMEA
Authorization: Basic c2VudGluZWw6U2lsdjNyYmFjaw==
Connection: keep-alive
+++RESP 16+++
HTTP/1.0 304 Not Modified
Server: Microsoft-IIS/5.0
Date: Mon, 10 Apr 2006 15:51:46 GMT
ETag: "03a2179f1ecc31:d92"
Content-Length: 0
+++RESP 17+++
HTTP/1.0 304 Not Modified
Server: Microsoft-IIS/5.0
Date: Mon, 10 Apr 2006 15:51:46 GMT
ETag: "067527af1ecc31:d92"
Content-Length: 0
+++CLOSE 16+++
+++CLOSE 17+++
+++GET 18+++
GET /stadtweb/images/jenzabar.gif HTTP/1.0
Accept: */*
Referer: http://wwweb.jawohl.de/stadtweb/images/jenzabar.gif
Accept-Language: en-us
If-Modified-Since: Fri, 06 Feb 2004 20:40:42 GMT
If-None-Match: "0c1b47cf1ecc31:d92"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)
Host: wwweb.jawohl.de
Cookie: cookie%5Fcertificate=82671H3YBI479IPZXISUFJK6135V0366Y33W844R14P8C4SR9LK8XL5SFM691MT7BMLYY0O7816ZE137C15Z0D6VXET6GELV1EOQ;
ASPSESSIONIDQARBADBC=NJIJMMDALEAJKOKFBFOLDMEA
Authorization: Basic c2VudGluZWw6U2lsdjNyYmFjaw==
Connection: keep-alive
+++RESP 18+++
HTTP/1.0 304 Not Modified
Server: Microsoft-IIS/5.0
Date: Mon, 10 Apr 2006 15:51:46 GMT
ETag: "0c1b47cf1ecc31:d92"
Content-Length: 0
+++CLOSE 18+++
Thanks
Received on 2006-04-10