Hello,

Any help on this subject would be greatly appreciated.  I am having trouble
passing cookies/session ID on a second request to the same host.  The first
request is a login POST to a form.  The second is the GET in shown in the
log.  You can see at the end of the Login Post I have accepted new cookies
and they are properly passed to the GET.  The server seemingly ignores these
cookies and gives me new ones.  Perhaps my session ID is changing?  Any
advice?

Note that I am using the same HttpClient for both requests.
Browser_Compatibility is set on both requests.

2010/02/17 19:45:49:522 CST [DEBUG] CookieSpec - Unrecognized cookie
attribute: name=HttpOnly, value=null
2010/02/17 19:45:49:522 CST [DEBUG] HttpMethodBase - Cookie accepted:
"phpbb3_p7soi_u=1"
2010/02/17 19:45:49:522 CST [DEBUG] CookieSpec - Unrecognized cookie
attribute: name=HttpOnly, value=null
2010/02/17 19:45:49:523 CST [DEBUG] HttpMethodBase - Cookie accepted:
"phpbb3_p7soi_k="
2010/02/17 19:45:49:523 CST [DEBUG] CookieSpec - Unrecognized cookie
attribute: name=HttpOnly, value=null
2010/02/17 19:45:49:523 CST [DEBUG] HttpMethodBase - Cookie accepted:
"phpbb3_p7soi_sid=a122e0a21fce3f69e1b9d4e6396ae5be"

> 2010/02/17 19:45:49:524 CST [DEBUG] CookieSpec - Unrecognized cookie
> attribute: name=HttpOnly, value=null
> 2010/02/17 19:45:49:524 CST [DEBUG] HttpMethodBase - Cookie accepted:
> "phpbb3_p7soi_u=13700"
> 2010/02/17 19:45:49:524 CST [DEBUG] CookieSpec - Unrecognized cookie
> attribute: name=HttpOnly, value=null
> 2010/02/17 19:45:49:524 CST [DEBUG] HttpMethodBase - Cookie accepted:
> "phpbb3_p7soi_k=643d63e8df243bef"
> 2010/02/17 19:45:49:525 CST [DEBUG] CookieSpec - Unrecognized cookie
> attribute: name=HttpOnly, value=null
> 2010/02/17 19:45:49:525 CST [DEBUG] HttpMethodBase - Cookie accepted:
> "phpbb3_p7soi_sid=14ef4343e063c30a2de274d1849997ed"
> 200
> [Lorg.apache.commons.httpclient.Header;@19106c7
>    <td class="row1" align="center"><br /><p class="gen">You have been
> successfully logged in.<br /><br /><a href="
>
> http://www.throneit.com/forums/index.php?sid=14ef4343e063c30a2de274d1849997ed
> ">Return
> to the index page</a></p><br /></td>
> 2010/02/17 19:45:49:726 CST [DEBUG] header - << "[\r][\n]"
> 2010/02/17 19:45:49:726 CST [DEBUG] HttpMethodBase - Resorting to protocol
> version default close connection policy
> 2010/02/17 19:45:49:726 CST [DEBUG] HttpMethodBase - Should NOT close
> connection, using HTTP/1.1
> 2010/02/17 19:45:49:726 CST [DEBUG] HttpConnection - Releasing connection
> back to connection manager.
> Present cookies:
>  - phpbb3_p7soi_u=13700
>  - phpbb3_p7soi_k=643d63e8df243bef
>  - phpbb3_p7soi_sid=14ef4343e063c30a2de274d1849997ed
> 2010/02/17 19:45:49:727 CST [DEBUG] DefaultHttpParams - Set parameter
> http.protocol.cookie-policy = compatibility
> 2010/02/17 19:45:49:729 CST [DEBUG] header - >> "GET
> /?p=stats&u=Cadicus.&s=
> useast.battle.net HTTP/1.1[\r][\n]"
> 2010/02/17 19:45:49:729 CST [DEBUG] HttpMethodBase - Adding Host request
> header
> 2010/02/17 19:45:49:730 CST [DEBUG] header - >> "User-Agent: Jakarta
> Commons-HttpClient/3.1[\r][\n]"
> 2010/02/17 19:45:49:730 CST [DEBUG] header - >> "Host: www.throneit.com
> [\r][\n]"
> 2010/02/17 19:45:49:730 CST [DEBUG] header - >> "Cookie:
> phpbb3_p7soi_u=13700[\r][\n]"
> 2010/02/17 19:45:49:730 CST [DEBUG] header - >> "Cookie:
> phpbb3_p7soi_k=643d63e8df243bef[\r][\n]"
> 2010/02/17 19:45:49:730 CST [DEBUG] header - >> "Cookie:
> phpbb3_p7soi_sid=14ef4343e063c30a2de274d1849997ed[\r][\n]"
> 2010/02/17 19:45:49:730 CST [DEBUG] header - >> "[\r][\n]"
> 2010/02/17 19:45:51:126 CST [DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]"
> 2010/02/17 19:45:51:126 CST [DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]"
> 2010/02/17 19:45:51:126 CST [DEBUG] header - << "Date: Thu, 18 Feb 2010
> 01:45:52 GMT[\r][\n]"
> 2010/02/17 19:45:51:126 CST [DEBUG] header - << "Server: Apache/2.2.14
> (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4[\r][\n]"
> 2010/02/17 19:45:51:126 CST [DEBUG] header - << "X-Powered-By:
> PHP/5.3.1[\r][\n]"
> 2010/02/17 19:45:51:126 CST [DEBUG] header - << "Set-Cookie:
> phpbb3_p7soi_u=1; expires=Fri, 18-Feb-2011 01:45:53 GMT; path=/; domain=
> throneit.com; HttpOnly[\r][\n]"
> 2010/02/17 19:45:51:126 CST [DEBUG] header - << "Set-Cookie:
> phpbb3_p7soi_k=; expires=Fri, 18-Feb-2011 01:45:53 GMT; path=/; domain=
> throneit.com; HttpOnly[\r][\n]"
> 2010/02/17 19:45:51:126 CST [DEBUG] header - << "Set-Cookie:
> phpbb3_p7soi_sid=53d1a1250fb8e9a411a119a75bce4cee; expires=Fri, 18-Feb-2011
> 01:45:53 GMT; path=/; domain=throneit.com; HttpOnly[\r][\n]"
> 2010/02/17 19:45:51:126 CST [DEBUG] header - << "Transfer-Encoding:
> chunked[\r][\n]"
>

Reply via email to