commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@bluewin.ch
Subject RE: [httpclient] session after autentication
Date Tue, 14 Oct 2003 09:31:26 GMT
Albert,
Apparently you have not activated the strict mode. Give it a shot. Some servers
do expect all cookies to be condensed into one header.

Oleg


>-- Original Message --
>Reply-To: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>
>From: "Albert Caramia" <a_caramia@hotmail.com>
>To: commons-user@jakarta.apache.org
>Subject: RE: [httpclient] session after autentication
>Date: Tue, 14 Oct 2003 11:23:29 +0200
>
>
>Oleg,
>
>this is the log.
>
>Albert
>----------
>
>2003/10/14 11:21:04:353 CEST [DEBUG] HttpClient - -Java version: 1.4.1_02
>2003/10/14 11:21:04:353 CEST [DEBUG] HttpClient - -Java vendor: Sun 
>Microsystems Inc.
>2003/10/14 11:21:04:353 CEST [DEBUG] HttpClient - -Java class path: C:...
>2003/10/14 11:21:04:510 CEST [DEBUG] HttpClient - -Operating system name:
>
>Windows 2000
>2003/10/14 11:21:04:510 CEST [DEBUG] HttpClient - -Operating system 
>architecture: x86
>2003/10/14 11:21:04:510 CEST [DEBUG] HttpClient - -Operating system version:
>
>5.0
>2003/10/14 11:21:05:728 CEST [DEBUG] HttpClient - -SUN 1.2: SUN (DSA 
>key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom;
>
>X.509 certificates; JKS keystore; PKIX CertPathValidator; PKIX 
>CertPathBuilder; LDAP, Collection CertStores)
>2003/10/14 11:21:05:728 CEST [DEBUG] HttpClient - -SunJSSE 1.41: Sun JSSE
>
>provider(implements RSA Signatures, PKCS12, SunX509 key/trust factories,
>
>SSLv3, TLSv1)
>2003/10/14 11:21:05:728 CEST [DEBUG] HttpClient - -SunRsaSign 1.0: SUN's
>
>provider for RSA signatures
>2003/10/14 11:21:05:744 CEST [DEBUG] HttpClient - -SunJCE 1.4: SunJCE 
>Provider (implements DES, Triple DES, Blowfish, PBE, Diffie-Hellman, 
>HMAC-MD5, HMAC-SHA1)
>2003/10/14 11:21:05:744 CEST [DEBUG] HttpClient - -SunJGSS 1.0: Sun 
>(Kerberos v5)
>2003/10/14 11:21:05:978 CEST [DEBUG] HttpConnection - 
>-HttpConnection.setSoTimeout(0)
>2003/10/14 11:21:06:072 CEST [DEBUG] HttpMethodBase - -Execute loop try
1
>2003/10/14 11:21:06:088 CEST [DEBUG] wire - ->> "POST 
>http://www.smsexecutive.it/new/index1.php HTTP/1.1[\r][\n]"
>2003/10/14 11:21:06:088 CEST [DEBUG] HttpMethodBase - -Adding Host request
>
>header
>2003/10/14 11:21:06:088 CEST [DEBUG] HttpMethodBase - -Default charset used:
>
>ISO-8859-1
>2003/10/14 11:21:06:119 CEST [DEBUG] wire - ->> "Accept: image/gif, 
>image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, 
>application/vnd.ms-powerpoint, application/msword, */*[\r][\n]"
>2003/10/14 11:21:06:119 CEST [DEBUG] wire - ->> "Accept-Language: 
>it,en;q=0.5[\r][\n]"
>2003/10/14 11:21:06:119 CEST [DEBUG] wire - ->> "Referer: 
>http://www.smsexecutive.it/new/dx.php[\r][\n]"
>2003/10/14 11:21:06:150 CEST [DEBUG] wire - ->> "Pragma: no-cache[\r][\n]"
>2003/10/14 11:21:06:150 CEST [DEBUG] wire - ->> "User-Agent: Mozilla/4.0
>
>(compatible; MSIE 5.5; Windows NT 5.0)[\r][\n]"
>2003/10/14 11:21:06:150 CEST [DEBUG] wire - ->> "Host: 
>www.smsexecutive.it[\r][\n]"
>2003/10/14 11:21:06:150 CEST [DEBUG] wire - ->> "Proxy-Connection: 
>Keep-Alive[\r][\n]"
>2003/10/14 11:21:06:166 CEST [DEBUG] wire - ->> "Content-Length: 48[\r][\n]"
>2003/10/14 11:21:06:166 CEST [DEBUG] wire - ->> "Content-Type: 
>application/x-www-form-urlencoded[\r][\n]"
>2003/10/14 11:21:06:166 CEST [DEBUG] wire - ->> "[\r][\n]"
>2003/10/14 11:21:06:166 CEST [DEBUG] EntityEnclosingMethod - -Using buffered
>
>request body
>2003/10/14 11:21:06:181 CEST [DEBUG] wire - ->> 
>"username=user&password=pass&Submit=Invia"
>2003/10/14 11:21:06:181 CEST [DEBUG] EntityEnclosingMethod - -Request body
>
>sent
>2003/10/14 11:21:06:306 CEST [DEBUG] wire - -<< "HTTP/1.1 200 OK[\r][\n]"
>2003/10/14 11:21:06:306 CEST [DEBUG] wire - -<< "Via: 1.1 GTELP1[\r][\n]"
>2003/10/14 11:21:06:306 CEST [DEBUG] wire - -<< "Connection: close[\r][\n]"
>2003/10/14 11:21:06:306 CEST [DEBUG] wire - -<< "Proxy-Connection: 
>close[\r][\n]"
>2003/10/14 11:21:06:306 CEST [DEBUG] wire - -<< "Expires: Mon, 26 Jul 1997
>
>05:00:00 GMT[\r][\n]"
>2003/10/14 11:21:06:338 CEST [DEBUG] wire - -<< "Date: Tue, 14 Oct 2003

>09:12:27 GMT[\r][\n]"
>2003/10/14 11:21:06:338 CEST [DEBUG] wire - -<< "Content-Type: 
>text/html[\r][\n]"
>2003/10/14 11:21:06:338 CEST [DEBUG] wire - -<< "Server: Apache/1.3.19 
>(Unix)  (Red-Hat/Linux)[\r][\n]"
>2003/10/14 11:21:06:338 CEST [DEBUG] wire - -<< "Last-Modified: Tue, 14
Oct
>
>2003 09:12:27 GMT[\r][\n]"
>2003/10/14 11:21:06:416 CEST [DEBUG] wire - -<< "Cache-Control: no-cache,
>
>must-revalidate[\r][\n]"
>2003/10/14 11:21:06:416 CEST [DEBUG] wire - -<< "Pragma: no-cache[\r][\n]"
>2003/10/14 11:21:06:416 CEST [DEBUG] wire - -<< "Set-Cookie: 
>userid=user[\r][\n]"
>2003/10/14 11:21:06:416 CEST [DEBUG] wire - -<< "Set-Cookie: 
>userhash=70d52c3c[\r][\n]"
>2003/10/14 11:21:06:447 CEST [DEBUG] wire - -<< "Set-Cookie: 
>id_utente=109[\r][\n]"
>2003/10/14 11:21:06:541 CEST [DEBUG] HttpMethodBase - -Cookie accepted:

>"userid=user"
>2003/10/14 11:21:06:541 CEST [DEBUG] HttpMethodBase - -Cookie accepted:

>"userhash=70d52c3c"
>2003/10/14 11:21:06:541 CEST [DEBUG] HttpMethodBase - -Cookie accepted:

>"id_utente=109"
>2003/10/14 11:21:06:541 CEST [WARN] HttpMethodBase - -Response content 
>length is not known
>2003/10/14 11:21:06:603 CEST [DEBUG] HttpMethodBase - -Force-close 
>connection: true
>2003/10/14 11:21:06:603 CEST [DEBUG] HttpMethodBase - -Buffering response
>
>body
>2003/10/14 11:21:06:603 CEST [DEBUG] wire - -<< "<!DOCTYPE HTML PUBLIC 
>"-//W3C//DTD HTML 4.0 Frameset//EN">[\r][\n]"
>2003/10/14 11:21:06:603 CEST [DEBUG] wire - -<< "<!-- saved from 
>url=(0034)http://edit.dev.dada.net/index.php -->[\r][\n]"
>2003/10/14 11:21:06:634 CEST [DEBUG] wire - -<< 
>"<HTML><HEAD><TITLE>SMSexecutive</title>[\r][\n]"
>2003/10/14 11:21:06:634 CEST [DEBUG] wire - -<< "<META 
>http-equiv=Content-Type content="text/html; charset=iso-8859-1">[\r][\n]"
>2003/10/14 11:21:06:634 CEST [DEBUG] wire - -<< "<META content="MSHTML 
>6.00.2600.0" name=GENERATOR></head><FRAMESET border=0 [\r][\n]"
>2003/10/14 11:21:06:650 CEST [DEBUG] wire - -<< "frameSpacing=0 rows=93,*
>
>frameBorder=NO>[\r][\n]"
>2003/10/14 11:21:06:650 CEST [DEBUG] wire - -<< "  <FRAME name=AdmintopFrame
>
>src="head.htm" noResize scrolling=no>[\r][\n]"
>2003/10/14 11:21:06:650 CEST [DEBUG] wire - -<< "  <FRAMESET border=0 
>frameSpacing=0 rows=*,9 frameBorder=NO cols="*"> [\r][\n]"
>2003/10/14 11:21:06:650 CEST [DEBUG] wire - -<< "    <frameset cols="175,*"
>
>frameborder="NO" border="0" framespacing="0" rows="*"> [\r][\n]"
>2003/10/14 11:21:06:666 CEST [DEBUG] wire - -<< "      <frame 
>name="leftFrame" scrolling="NO" noresize src="sx.php">[\r][\n]"
>2003/10/14 11:21:06:666 CEST [DEBUG] wire - -<< "      <FRAME name=mainFrame
>
>src="blank.htm">[\r][\n]"
>2003/10/14 11:21:06:666 CEST [DEBUG] wire - -<< "    </frameset>[\r][\n]"
>2003/10/14 11:21:06:666 CEST [DEBUG] wire - -<< "    <FRAME 
>name=AdminbottomFrame src="footer.htm" noResize scrolling=no>[\r][\n]"
>2003/10/14 11:21:06:666 CEST [DEBUG] wire - -<< "  </frameset>[\r][\n]"
>2003/10/14 11:21:06:666 CEST [DEBUG] wire - -<< 
>"</frameset><noframes></noframes></html>[\r][\n]"
>2003/10/14 11:21:06:666 CEST [DEBUG] HttpMethodBase - -Should force-close
>
>connection.
>2003/10/14 11:21:06:666 CEST [DEBUG] HttpMethodBase - -Default charset used:
>
>ISO-8859-1
>2003/10/14 11:21:06:681 CEST [DEBUG] HttpConnection - -Connection is stale,
>
>closing...
>2003/10/14 11:21:06:681 CEST [DEBUG] HttpConnection - 
>-HttpConnection.setSoTimeout(0)
>2003/10/14 11:21:06:681 CEST [DEBUG] HttpMethodBase - -Execute loop try
1
>result POST: HTTP/1.1 200 OK
>2003/10/14 11:21:06:728 CEST [DEBUG] wire - ->> "GET 
>http://www.smsexecutive.it/new/sx.php HTTP/1.0[\r][\n]"
>2003/10/14 11:21:06:728 CEST [DEBUG] HttpMethodBase - -Adding Host request
>
>header
>2003/10/14 11:21:06:728 CEST [DEBUG] wire - ->> "Accept: image/gif, 
>image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, 
>application/vnd.ms-powerpoint, application/msword, */*[\r][\n]"
>2003/10/14 11:21:06:759 CEST [DEBUG] wire - ->> "Referer: 
>http://www.smsexecutive.it/new/index1.php[\r][\n]"
>2003/10/14 11:21:06:759 CEST [DEBUG] wire - ->> "Accept-Language: 
>it,en;q=0.5[\r][\n]"
>2003/10/14 11:21:06:759 CEST [DEBUG] wire - ->> "User-Agent: Mozilla/4.0
>
>(compatible; MSIE 5.5; Windows NT 5.0)[\r][\n]"
>2003/10/14 11:21:06:759 CEST [DEBUG] wire - ->> "Host: 
>www.smsexecutive.it[\r][\n]"
>2003/10/14 11:21:06:775 CEST [DEBUG] wire - ->> "Cookie: 
>userid=user[\r][\n]"
>2003/10/14 11:21:06:775 CEST [DEBUG] wire - ->> "Cookie: 
>userhash=70d52c3c[\r][\n]"
>2003/10/14 11:21:06:775 CEST [DEBUG] wire - ->> "Cookie: 
>id_utente=109[\r][\n]"
>2003/10/14 11:21:06:775 CEST [DEBUG] wire - ->> "Proxy-Connection: 
>Keep-Alive[\r][\n]"
>2003/10/14 11:21:06:806 CEST [DEBUG] wire - ->> "[\r][\n]"
>2003/10/14 11:21:06:963 CEST [DEBUG] wire - -<< "HTTP/1.1 302 Found[\r][\n]"
>2003/10/14 11:21:06:963 CEST [DEBUG] wire - -<< "Via: 1.1 GTELP1[\r][\n]"
>2003/10/14 11:21:06:963 CEST [DEBUG] wire - -<< "Expires: Mon, 26 Jul 1997
>
>05:00:00 GMT[\r][\n]"
>2003/10/14 11:21:06:963 CEST [DEBUG] wire - -<< "Date: Tue, 14 Oct 2003

>09:12:28 GMT[\r][\n]"
>2003/10/14 11:21:06:994 CEST [DEBUG] wire - -<< "Location: 
>index.php[\r][\n]"
>2003/10/14 11:21:06:994 CEST [DEBUG] wire - -<< "Content-Type: 
>text/html[\r][\n]"
>2003/10/14 11:21:06:994 CEST [DEBUG] wire - -<< "Server: Apache/1.3.19 
>(Unix)  (Red-Hat/Linux)[\r][\n]"
>2003/10/14 11:21:06:994 CEST [DEBUG] wire - -<< "Last-Modified: Tue, 14
Oct
>
>2003 09:12:28 GMT[\r][\n]"
>2003/10/14 11:21:07:041 CEST [DEBUG] wire - -<< "Cache-Control: no-cache,
>
>must-revalidate[\r][\n]"
>2003/10/14 11:21:07:041 CEST [DEBUG] wire - -<< "Pragma: no-cache[\r][\n]"
>2003/10/14 11:21:07:041 CEST [WARN] HttpMethodBase - -Response content 
>length is not known
>2003/10/14 11:21:07:041 CEST [DEBUG] HttpMethodBase - -Force-close 
>connection: true
>2003/10/14 11:21:07:072 CEST [DEBUG] HttpMethodBase - -Redirect required
>2003/10/14 11:21:07:072 CEST [DEBUG] HttpMethodBase - -Redirect requested
>to 
>location 'index.php'
>2003/10/14 11:21:07:072 CEST [DEBUG] HttpMethodBase - -Redirect URI is not
>
>absolute - parsing as relative
>2003/10/14 11:21:07:072 CEST [DEBUG] HttpMethodBase - -Redirecting from

>'http://www.smsexecutive.it:80/new/sx.php' to 
>'http://www.smsexecutive.it:80/new/index.php
>2003/10/14 11:21:07:088 CEST [DEBUG] HttpMethodBase - -Should force-close
>
>connection.
>2003/10/14 11:21:07:088 CEST [DEBUG] HttpMethodBase - -Execute loop try
2
>2003/10/14 11:21:07:088 CEST [DEBUG] HttpMethodBase - -Opening the 
>connection.
>2003/10/14 11:21:07:088 CEST [DEBUG] wire - ->> "GET 
>http://www.smsexecutive.it/new/index.php HTTP/1.1[\r][\n]"
>2003/10/14 11:21:07:103 CEST [DEBUG] HttpMethodBase - -Request to add Host
>
>header ignored: header already added
>2003/10/14 11:21:07:103 CEST [DEBUG] wire - ->> "Accept: image/gif, 
>image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, 
>application/vnd.ms-powerpoint, application/msword, */*[\r][\n]"
>2003/10/14 11:21:07:103 CEST [DEBUG] wire - ->> "Referer: 
>http://www.smsexecutive.it/new/index1.php[\r][\n]"
>2003/10/14 11:21:07:166 CEST [DEBUG] wire - ->> "Accept-Language: 
>it,en;q=0.5[\r][\n]"
>2003/10/14 11:21:07:166 CEST [DEBUG] wire - ->> "User-Agent: Mozilla/4.0
>
>(compatible; MSIE 5.5; Windows NT 5.0)[\r][\n]"
>2003/10/14 11:21:07:166 CEST [DEBUG] wire - ->> "Host: 
>www.smsexecutive.it[\r][\n]"
>2003/10/14 11:21:07:166 CEST [DEBUG] wire - ->> "Cookie: 
>userid=user[\r][\n]"
>2003/10/14 11:21:07:181 CEST [DEBUG] wire - ->> "Cookie: 
>userhash=70d52c3c[\r][\n]"
>2003/10/14 11:21:07:181 CEST [DEBUG] wire - ->> "Cookie: 
>id_utente=109[\r][\n]"
>2003/10/14 11:21:07:181 CEST [DEBUG] wire - ->> "Proxy-Connection: 
>Keep-Alive[\r][\n]"
>2003/10/14 11:21:07:181 CEST [DEBUG] wire - ->> "[\r][\n]"
>2003/10/14 11:21:07:228 CEST [DEBUG] wire - -<< "HTTP/1.1 200 OK[\r][\n]"
>2003/10/14 11:21:07:228 CEST [DEBUG] wire - -<< "Via: 1.1 GTELP1[\r][\n]"
>2003/10/14 11:21:07:228 CEST [DEBUG] wire - -<< "Connection: close[\r][\n]"
>2003/10/14 11:21:07:228 CEST [DEBUG] wire - -<< "Proxy-Connection: 
>close[\r][\n]"
>2003/10/14 11:21:07:228 CEST [DEBUG] wire - -<< "Date: Tue, 14 Oct 2003

>09:12:28 GMT[\r][\n]"
>2003/10/14 11:21:07:884 CEST [DEBUG] wire - -<< "Content-Type: 
>text/html[\r][\n]"
>2003/10/14 11:21:07:884 CEST [DEBUG] wire - -<< "Server: Apache/1.3.19 
>(Unix)  (Red-Hat/Linux)[\r][\n]"
>2003/10/14 11:21:07:884 CEST [WARN] HttpMethodBase - -Response content 
>length is not known
>2003/10/14 11:21:07:884 CEST [DEBUG] HttpMethodBase - -Force-close 
>connection: true
>2003/10/14 11:21:07:978 CEST [DEBUG] HttpMethodBase - -Buffering response
>
>body
>2003/10/14 11:21:07:978 CEST [DEBUG] wire - -<< "<!DOCTYPE HTML PUBLIC 
>"-//W3C//DTD HTML 4.0 Frameset//EN">[\r][\n]"
>2003/10/14 11:21:07:978 CEST [DEBUG] wire - -<< "<!-- saved from 
>url=(0034)http://edit.dev.dada.net/index.php -->[\r][\n]"
>2003/10/14 11:21:07:978 CEST [DEBUG] wire - -<< 
>"<HTML><HEAD><TITLE>SMSexecutive</title>[\r][\n]"result GET: HTTP/1.1
200
>OK
>2003/10/14 11:21:08:009 CEST [DEBUG] wire - -<< "<META 
>http-equiv=Content-Type content="text/html; charset=iso-8859-1">[\r][\n]"
>2003/10/14 11:21:08:009 CEST [DEBUG] wire - -<< "<META content="MSHTML 
>6.00.2600.0" name=GENERATOR></head>[\r][\n]"
>2003/10/14 11:21:08:009 CEST [DEBUG] wire - -<< "<FRAMESET border=0 
>[\r][\n]"
>2003/10/14 11:21:08:009 CEST [DEBUG] wire - -<< "frameSpacing=0 rows=93,*
>
>frameBorder=NO> [\r][\n]"
>2003/10/14 11:21:08:025 CEST [DEBUG] wire - -<< "  <FRAME name=AdmintopFrame
>
>src="newhead.htm" noResize scrolling=no>[\r][\n]"
>2003/10/14 11:21:08:025 CEST [DEBUG] wire - -<< "  <FRAMESET border=0 
>frameSpacing=0 rows=*,9 frameBorder=NO cols="*"> [\r][\n]"
>2003/10/14 11:21:08:025 CEST [DEBUG] wire - -<< "    <frameset cols="*,218"
>
>frameborder="NO" border="0" framespacing="0" rows="*"> [\r][\n]"
>2003/10/14 11:21:08:056 CEST [DEBUG] wire - -<< "      <frameset 
>cols="175,*" frameborder="NO" border="0" framespacing="0" rows="*"> 
>[\r][\n]"
>2003/10/14 11:21:08:056 CEST [DEBUG] wire - -<< "        <frame 
>name="leftFrame" scrolling="NO" src="newsx.php" noresize>[\r][\n]"
>2003/10/14 11:21:08:056 CEST [DEBUG] wire - -<< "                      
><frame name="mainFrame"src="what.php"></frameset>[\r][\n]"
>2003/10/14 11:21:08:087 CEST [DEBUG] wire - -<< "      <frame 
>name="rightFrame" scrolling="NO" noresize src="dx.php">[\r][\n]"
>2003/10/14 11:21:08:087 CEST [DEBUG] wire - -<< "    </frameset>[\r][\n]"
>2003/10/14 11:21:08:087 CEST [DEBUG] wire - -<< "    <FRAME 
>name=AdminbottomFrame src="footer.htm" noResize scrolling=no>[\r][\n]"
>2003/10/14 11:21:08:087 CEST [DEBUG] wire - -<< "  </frameset>[\r][\n]"
>2003/10/14 11:21:08:103 CEST [DEBUG] wire - -<< "</frameset>[\r][\n]"
>2003/10/14 11:21:08:103 CEST [DEBUG] wire - -<< "<noframes>[\r][\n]"
>2003/10/14 11:21:08:103 CEST [DEBUG] wire - -<< "</noframes>[\r][\n]"
>2003/10/14 11:21:08:103 CEST [DEBUG] wire - -<< "</html>[\r][\n]"
>2003/10/14 11:21:08:103 CEST [DEBUG] HttpMethodBase - -Should force-close
>
>connection.
>2003/10/14 11:21:08:134 CEST [DEBUG] HttpMethodBase - -Default charset used:
>
>ISO-8859-1
>
>_________________________________________________________________
>MSN 8 with e-mail virus protection service: 2 months FREE* 
>http://join.msn.com/?page=features/virus
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message