Please help on HTTP cookie

A

Aynang Yang

I have to work on a screen scripting work via a remote web server (MS IIS 5.0)
that requires a login to set up a session to proceed.

I can talk to the remote server in the following sense until at a point
where it does not understand the cookie/session that has been authenticated.

Anything that I misinterprete the cookie?

I am using JDK 1.4.1 via Socket().

Help is deeply appreciated.

(Please send your help to (e-mail address removed), for it is inconvenient
to check USENET message here.)

(e-mail address removed)
GET / HTTP/1.0
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; windows NT 4.0)
Connection: Keep-Alive
Host: www.xyz.123.com

< HTTP/1.1 302 Object moved
< Server: Microsoft-IIS/5.0
< Date: Mon, 12 Jan 2004 21:07:01 GMT
< Location: /Login/Login.asp
< Connection: Keep-Alive
< Content-Length: 121
< Content-Type: text/html
< Set-Cookie: ASPSESSIONIDQQDBABAC=JJLACLPBOPHNFDNABDKBHCHI; path=/
< Cache-control: private
<
GET /Login/Login.asp HTTP/1.0
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; windows NT 4.0)
Connection: Keep-Alive
Host: www.xyz.123.com

< HTTP/1.1 200 OK
< Server: Microsoft-IIS/5.0
< Date: Mon, 12 Jan 2004 21:07:01 GMT
< Connection: Keep-Alive
< Content-Length: 5604
< Content-Type: text/html
< Set-Cookie: ASPSESSIONIDQQDBABAC=KJLACLPBLKOKBMPDCBBNBKJL; path=/
< Cache-control: private
<
<
< <HTML>
< <HEAD>
< ................

POST /Login/CheckLogin.asp HTTP/1.0
Referer: http://www.xyz.123.com/Login/Login.asp
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; windows NT 4.0)
Host: www.xyz.123.com
Content-Length: 33
Connection: Keep-Alive
Cache-Control: no-cache
Accept: */*
Cookie: ASPSESSIONIDQQDBABAC=KJLACLPBLKOKBMPDCBBNBKJL

userID=123456&password=myPassword



< HTTP/1.1 302 Object moved
< Server: Microsoft-IIS/5.0
< Date: Mon, 12 Jan 2004 21:07:01 GMT
< Location: ../index.asp
< Connection: Keep-Alive
< Content-Length: 121
< Content-Type: text/html
< Set-Cookie: ASPSESSIONIDQQDBABAC=LJLACLPBODLFDMJICHFNKLND; path=/
< Cache-control: private
<
< <head><title>Object moved</title></head>
< .................


GET /index.asp HTTP/1.0
Referer: http://www.xyz.123.com/Login/CheckLogin.asp
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Host: www.xyz.123.com
Accept: */*
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; windows NT 4.0)
Cache-Control: no-cache
Cookie: ASPSESSIONIDQQDBABAC=LJLACLPBODLFDMJICHFNKLND



< HTTP/1.1 302 Object moved
< Server: Microsoft-IIS/5.0
< Date: Mon, 12 Jan 2004 21:07:01 GMT
< Location: /Login/Login.asp
< Connection: Keep-Alive
< Content-Length: 121
< Content-Type: text/html
< Set-Cookie: ASPSESSIONIDQQDBABAC=MJLACLPBJDODDIOLBAENOBIO; path=/
< Cache-control: private
<
< <head><title>Object moved</title></head>
< ...........................

Previous protocol told me to get /index.asp. My login seems OK. Why
this redirect me to login page again??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top