On Thu, 2006-01-26 at 12:25 -0600, Pullen, Matthew wrote: > Here is a wire log: > I notice that the cookies on posting appear to be getting to and from > the site. However, the session cookie is changing several times > throughout. The codes does not make any modification of the HttpState. >
Matthew, Try using the browser compatibility policy and force cookies into one request header. See if that makes any difference. For details refer to the HttpClient cookie guide: http://jakarta.apache.org/commons/httpclient/cookies.html#Browser% 20Compatibility Hope this helps Oleg > Sample: > try { > int status = client.executeMethod( post ); > System.out.println("post status:"+ status); > String redirectLocation; > Header locationHeader = post.getResponseHeader("location"); > if (locationHeader != null) { > redirectLocation = locationHeader.getValue(); > System.out.println("redirectLocation:"+ > redirectLocation); > } else { > > } > } finally { > post.releaseConnection(); > } > > GetMethod get = new GetMethod("http://www.netflix.com/Queue"); > try { > int status = client.executeMethod( get ); > > // print the status and response > System.out.println(status + "\n" + > get.getResponseBodyAsString()); > } finally { > get.releaseConnection(); > > } > > > 2006/01/26 12:18:45:404 CST [DEBUG] HttpClient - Java version: 1.5.0_04 > 2006/01/26 12:18:45:404 CST [DEBUG] HttpClient - Java vendor: Sun > Microsystems Inc. > 2006/01/26 12:18:45:404 CST [DEBUG] HttpClient - Java class path: > C:\workspace\httpclient\httpclient\bin;C:\workspace\httpclient\httpclien > t\java\lib\commons-httpclient-3.0.jar;C:\workspace\httpclient\httpclient > \java\lib\commons-logging-1.0.4.jar;C:\workspace\httpclient\httpclient\j > ava\lib\commons-codec-1.3.jar > 2006/01/26 12:18:45:483 CST [DEBUG] HttpClient - Operating system name: > Windows 2000 > 2006/01/26 12:18:45:483 CST [DEBUG] HttpClient - Operating system > architecture: x86 > 2006/01/26 12:18:45:483 CST [DEBUG] HttpClient - Operating system > version: 5.0 > 2006/01/26 12:18:45:670 CST [DEBUG] HttpClient - SUN 1.5: SUN (DSA > key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; > X.509 certificates; JKS keystore; PKIX CertPathValidator; PKIX > CertPathBuilder; LDAP, Collection CertStores) > 2006/01/26 12:18:45:670 CST [DEBUG] HttpClient - SunRsaSign 1.5: Sun RSA > signature provider > 2006/01/26 12:18:45:670 CST [DEBUG] HttpClient - SunJSSE 1.5: Sun JSSE > provider(PKCS12, SunX509 key/trust factories, SSLv3, TLSv1) > 2006/01/26 12:18:45:670 CST [DEBUG] HttpClient - SunJCE 1.5: SunJCE > Provider (implements RSA, DES, Triple DES, AES, Blowfish, ARCFOUR, RC2, > PBE, Diffie-Hellman, HMAC) > 2006/01/26 12:18:45:670 CST [DEBUG] HttpClient - SunJGSS 1.0: Sun > (Kerberos v5) > 2006/01/26 12:18:45:670 CST [DEBUG] HttpClient - SunSASL 1.5: Sun SASL > provider(implements client mechanisms for: DIGEST-MD5, GSSAPI, EXTERNAL, > PLAIN, CRAM-MD5; server mechanisms for: DIGEST-MD5, GSSAPI, CRAM-MD5) > 2006/01/26 12:18:45:686 CST [DEBUG] DefaultHttpParams - Set parameter > http.useragent = Jakarta Commons-HttpClient/3.0 > 2006/01/26 12:18:45:686 CST [DEBUG] DefaultHttpParams - Set parameter > http.protocol.version = HTTP/1.1 > 2006/01/26 12:18:45:686 CST [DEBUG] DefaultHttpParams - Set parameter > http.connection-manager.class = class > org.apache.commons.httpclient.SimpleHttpConnectionManager > 2006/01/26 12:18:45:686 CST [DEBUG] DefaultHttpParams - Set parameter > http.protocol.cookie-policy = rfc2109 > 2006/01/26 12:18:45:686 CST [DEBUG] DefaultHttpParams - Set parameter > http.protocol.element-charset = US-ASCII > 2006/01/26 12:18:45:686 CST [DEBUG] DefaultHttpParams - Set parameter > http.protocol.content-charset = ISO-8859-1 > 2006/01/26 12:18:45:686 CST [DEBUG] DefaultHttpParams - Set parameter > http.method.retry-handler = > [EMAIL PROTECTED] > 2006/01/26 12:18:45:701 CST [DEBUG] DefaultHttpParams - Set parameter > http.dateparser.patterns = [EEE, dd MMM yyyy HH:mm:ss zzz, EEEE, > dd-MMM-yy HH:mm:ss zzz, EEE MMM d HH:mm:ss yyyy, EEE, dd-MMM-yyyy > HH:mm:ss z, EEE, dd-MMM-yyyy HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE > dd-MMM-yyyy HH:mm:ss z, EEE dd MMM yyyy HH:mm:ss z, EEE dd-MMM-yyyy > HH-mm-ss z, EEE dd-MMM-yy HH:mm:ss z, EEE dd MMM yy HH:mm:ss z, > EEE,dd-MMM-yy HH:mm:ss z, EEE,dd-MMM-yyyy HH:mm:ss z, EEE, dd-MM-yyyy > HH:mm:ss z] > 2006/01/26 12:18:45:795 CST [DEBUG] HttpConnection - Open connection to > proxy.dmotorworks.com:8000 > 2006/01/26 12:18:45:858 CST [DEBUG] header - >> "CONNECT > www.netflix.com:443 HTTP/1.1" > 2006/01/26 12:18:45:858 CST [DEBUG] HttpMethodBase - Adding Host request > header > 2006/01/26 12:18:45:858 CST [DEBUG] header - >> "User-Agent: Jakarta > Commons-HttpClient/3.0[\r][\n]" > 2006/01/26 12:18:45:858 CST [DEBUG] header - >> "Host: > www.netflix.com[\r][\n]" > 2006/01/26 12:18:45:858 CST [DEBUG] header - >> "Proxy-Connection: > Keep-Alive[\r][\n]" > 2006/01/26 12:18:45:858 CST [DEBUG] header - >> "[\r][\n]" > 2006/01/26 12:18:45:920 CST [DEBUG] header - << "HTTP/1.0 200 Connection > established[\r][\n]" > 2006/01/26 12:18:45:951 CST [DEBUG] ConnectMethod - CONNECT status code > 200 > 2006/01/26 12:18:45:951 CST [DEBUG] HttpConnection - Secure tunnel to > www.netflix.com:443 > 2006/01/26 12:18:46:420 CST [DEBUG] header - >> "POST /Login > HTTP/1.1[\r][\n]" > 2006/01/26 12:18:46:420 CST [DEBUG] HttpMethodBase - Adding Host request > header > 2006/01/26 12:18:46:420 CST [DEBUG] HttpMethodBase - Default charset > used: ISO-8859-1 > 2006/01/26 12:18:46:436 CST [DEBUG] HttpMethodBase - Default charset > used: ISO-8859-1 > 2006/01/26 12:18:46:436 CST [DEBUG] header - >> "User-Agent: Jakarta > Commons-HttpClient/3.0[\r][\n]" > 2006/01/26 12:18:46:436 CST [DEBUG] header - >> "Host: > www.netflix.com[\r][\n]" > 2006/01/26 12:18:46:436 CST [DEBUG] header - >> "Content-Length: > 96[\r][\n]" > 2006/01/26 12:18:46:451 CST [DEBUG] header - >> "Content-Type: > application/x-www-form-urlencoded[\r][\n]" > 2006/01/26 12:18:46:451 CST [DEBUG] header - >> "[\r][\n]" > 2006/01/26 12:18:46:451 CST [DEBUG] content - >> > "email=test%40test.com&password1=test&RememberMe=True&SubmitButton=Click > +Here+to+Continue" > 2006/01/26 12:18:46:717 CST [DEBUG] EntityEnclosingMethod - Request body > sent > 2006/01/26 12:18:46:889 CST [DEBUG] header - << "HTTP/1.1 302 Moved > Temporarily[\r][\n]" > 2006/01/26 12:18:46:889 CST [DEBUG] header - << "Set-Cookie: > ARPT=KYXPKPS10.1.121.58T0x0000000e_0xbd4d1d69CMWQI; expires=Fri, > 26-Jan-2007 10:16:09 GMT; path=/[\r][\n]" > 2006/01/26 12:18:46:889 CST [DEBUG] header - << "Date: Thu, 26 Jan 2006 > 18:18:46 GMT[\r][\n]" > 2006/01/26 12:18:46:889 CST [DEBUG] header - << "Server: Apache > Coyote/1.0[\r][\n]" > 2006/01/26 12:18:46:889 CST [DEBUG] header - << "P3P: CP="CAO DSP COR > DEVa TAIa OUR BUS UNI STA"[\r][\n]" > 2006/01/26 12:18:46:889 CST [DEBUG] header - << "Set-Cookie: > testSvrRdrct=N; Domain=.netflix.com; Expires=Thu, 09-Feb-2006 18:18:46 > GMT; Path=/[\r][\n]" > 2006/01/26 12:18:46:889 CST [DEBUG] header - << "Set-Cookie: country=1; > Domain=.netflix.com; Expires=Fri, 26-Jan-2007 18:18:46 GMT; > Path=/[\r][\n]" > 2006/01/26 12:18:46:889 CST [DEBUG] header - << "Set-Cookie: > nflxsid=128; Domain=.netflix.com; Path=/[\r][\n]" > 2006/01/26 12:18:46:889 CST [DEBUG] header - << "Set-Cookie: > NetflixSession=128.25985133B0ED306AE01FAA9193F55F38; > Domain=.netflix.com; Path=/[\r][\n]" > 2006/01/26 12:18:46:904 CST [DEBUG] header - << "Set-Cookie: > NetflixCookies=try persistent; Domain=.netflix.com; Expires=Sat, > 25-Feb-2006 18:18:46 GMT; Path=/[\r][\n]" > 2006/01/26 12:18:46:904 CST [DEBUG] header - << "Location: > http://www.netflix.com/Login?tcw=1&cqs=[\r][\n]" > 2006/01/26 12:18:46:904 CST [DEBUG] header - << "Content-Type: > text/plain[\r][\n]" > 2006/01/26 12:18:46:904 CST [DEBUG] header - << "Content-Length: > 0[\r][\n]" > 2006/01/26 12:18:46:936 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; ARPT=KYXPKPS10.1.121.58T0x0000000e_0xbd4d1d69CMWQI; > $Path=/" > 2006/01/26 12:18:46:936 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; testSvrRdrct=N; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:46:936 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; country=1; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:46:936 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; nflxsid=128; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:46:936 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; NetflixSession=128.25985133B0ED306AE01FAA9193F55F38; > $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:46:951 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; NetflixCookies=try persistent; $Path=/; > $Domain=.netflix.com" > 2006/01/26 12:18:46:951 CST [DEBUG] HttpMethodDirector - Redirect > required > 2006/01/26 12:18:46:951 CST [INFO] HttpMethodDirector - Redirect > requested but followRedirects is disabled > post status:3022006/01/26 12:18:46:951 CST [DEBUG] HttpMethodBase - > Resorting to protocol version default close connection policy > redirectLocation:http://www.netflix.com/Login?tcw=1&cqs= > > 2006/01/26 12:18:46:951 CST [DEBUG] HttpMethodBase - Should NOT close > connection, using HTTP/1.1 > 2006/01/26 12:18:46:951 CST [DEBUG] HttpConnection - Releasing > connection back to connection manager. > 2006/01/26 12:18:46:967 CST [DEBUG] HttpConnection - Open connection to > proxy.dmotorworks.com:8000 > 2006/01/26 12:18:46:967 CST [DEBUG] header - >> "GET > http://www.netflix.com/Queue HTTP/1.1[\r][\n]" > 2006/01/26 12:18:46:967 CST [DEBUG] HttpMethodBase - Adding Host request > header > 2006/01/26 12:18:46:967 CST [DEBUG] header - >> "User-Agent: Jakarta > Commons-HttpClient/3.0[\r][\n]" > 2006/01/26 12:18:46:967 CST [DEBUG] header - >> "Host: > www.netflix.com[\r][\n]" > 2006/01/26 12:18:46:967 CST [DEBUG] header - >> "Cookie: $Version=0; > ARPT=KYXPKPS10.1.121.58T0x0000000e_0xbd4d1d69CMWQI; $Path=/[\r][\n]" > 2006/01/26 12:18:46:967 CST [DEBUG] header - >> "Cookie: $Version=0; > testSvrRdrct=N; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:46:967 CST [DEBUG] header - >> "Cookie: $Version=0; > country=1; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:46:967 CST [DEBUG] header - >> "Cookie: $Version=0; > nflxsid=128; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:46:967 CST [DEBUG] header - >> "Cookie: $Version=0; > NetflixSession=128.25985133B0ED306AE01FAA9193F55F38; $Path=/; > $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:46:967 CST [DEBUG] header - >> "Cookie: $Version=0; > NetflixCookies=try persistent; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:46:967 CST [DEBUG] header - >> "Proxy-Connection: > Keep-Alive[\r][\n]" > 2006/01/26 12:18:46:967 CST [DEBUG] header - >> "[\r][\n]" > 2006/01/26 12:18:47:123 CST [DEBUG] header - << "HTTP/1.0 302 Moved > Temporarily[\r][\n]" > 2006/01/26 12:18:47:123 CST [DEBUG] header - << "Set-Cookie: > ARPT=KYXPKPS10.1.121.58CKKWY; path=/[\r][\n]" > 2006/01/26 12:18:47:123 CST [DEBUG] header - << "Date: Thu, 26 Jan 2006 > 18:18:47 GMT[\r][\n]" > 2006/01/26 12:18:47:123 CST [DEBUG] header - << "Server: Apache > Coyote/1.0[\r][\n]" > 2006/01/26 12:18:47:123 CST [DEBUG] header - << "P3P: CP="CAO DSP COR > DEVa TAIa OUR BUS UNI STA"[\r][\n]" > 2006/01/26 12:18:47:123 CST [DEBUG] header - << "Set-Cookie: > lastHitTime=1138299523938; Domain=.netflix.com; Path=/[\r][\n]" > 2006/01/26 12:18:47:123 CST [DEBUG] header - << "Set-Cookie: country=1; > Domain=.netflix.com; Expires=Fri, 26-Jan-2007 18:18:47 GMT; > Path=/[\r][\n]" > 2006/01/26 12:18:47:123 CST [DEBUG] header - << "Set-Cookie: > nflxsid=128; Domain=.netflix.com; Path=/[\r][\n]" > 2006/01/26 12:18:47:123 CST [DEBUG] header - << "Location: > http://www.netflix.com/Queue?tcw=1&cqs=[\r][\n]" > 2006/01/26 12:18:47:123 CST [DEBUG] header - << "Content-Type: > text/plain[\r][\n]" > 2006/01/26 12:18:47:123 CST [DEBUG] header - << "Content-Length: > 0[\r][\n]" > 2006/01/26 12:18:47:123 CST [DEBUG] header - << "X-Cache: MISS from > proxy.dmotorworks.com[\r][\n]" > 2006/01/26 12:18:47:123 CST [DEBUG] header - << "Proxy-Connection: > keep-alive[\r][\n]" > 2006/01/26 12:18:47:123 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; ARPT=KYXPKPS10.1.121.58CKKWY; $Path=/" > 2006/01/26 12:18:47:123 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; lastHitTime=1138299523938; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:123 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; country=1; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:123 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; nflxsid=128; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:123 CST [DEBUG] HttpMethodDirector - Redirect > required > 2006/01/26 12:18:47:123 CST [DEBUG] HttpMethodDirector - Redirect > requested to location 'http://www.netflix.com/Queue?tcw=1&cqs=' > 2006/01/26 12:18:47:123 CST [DEBUG] HttpMethodDirector - Redirecting > from 'http://www.netflix.com:80/Queue' to 'http://www.netflix.com/Queue > 2006/01/26 12:18:47:123 CST [DEBUG] HttpMethodDirector - Execute > redirect 1 of 100 > 2006/01/26 12:18:47:123 CST [DEBUG] HttpMethodBase - Should NOT close > connection in response to directive: keep-alive > 2006/01/26 12:18:47:123 CST [DEBUG] HttpConnection - Connection is > locked. Call to releaseConnection() ignored. > 2006/01/26 12:18:47:139 CST [DEBUG] header - >> "GET > http://www.netflix.com/Queue?tcw=1&cqs= HTTP/1.0[\r][\n]" > 2006/01/26 12:18:47:139 CST [DEBUG] HttpMethodBase - Adding Host request > header > 2006/01/26 12:18:47:139 CST [DEBUG] header - >> "User-Agent: Jakarta > Commons-HttpClient/3.0[\r][\n]" > 2006/01/26 12:18:47:139 CST [DEBUG] header - >> "Proxy-Connection: > Keep-Alive[\r][\n]" > 2006/01/26 12:18:47:139 CST [DEBUG] header - >> "Host: > www.netflix.com[\r][\n]" > 2006/01/26 12:18:47:139 CST [DEBUG] header - >> "Cookie: $Version=0; > testSvrRdrct=N; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:139 CST [DEBUG] header - >> "Cookie: $Version=0; > NetflixSession=128.25985133B0ED306AE01FAA9193F55F38; $Path=/; > $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:139 CST [DEBUG] header - >> "Cookie: $Version=0; > NetflixCookies=try persistent; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:139 CST [DEBUG] header - >> "Cookie: $Version=0; > ARPT=KYXPKPS10.1.121.58CKKWY; $Path=/[\r][\n]" > 2006/01/26 12:18:47:139 CST [DEBUG] header - >> "Cookie: $Version=0; > lastHitTime=1138299523938; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:139 CST [DEBUG] header - >> "Cookie: $Version=0; > country=1; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:139 CST [DEBUG] header - >> "Cookie: $Version=0; > nflxsid=128; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:139 CST [DEBUG] header - >> "[\r][\n]" > 2006/01/26 12:18:47:311 CST [DEBUG] header - << "HTTP/1.0 302 Moved > Temporarily[\r][\n]" > 2006/01/26 12:18:47:311 CST [DEBUG] header - << "Set-Cookie: > ARPT=KYXPKPS10.1.121.32CKKWI; path=/[\r][\n]" > 2006/01/26 12:18:47:311 CST [DEBUG] header - << "Date: Thu, 26 Jan 2006 > 18:18:47 GMT[\r][\n]" > 2006/01/26 12:18:47:311 CST [DEBUG] header - << "Server: Apache > Coyote/1.0[\r][\n]" > 2006/01/26 12:18:47:311 CST [DEBUG] header - << "P3P: CP="CAO DSP COR > DEVa TAIa OUR BUS UNI STA"[\r][\n]" > 2006/01/26 12:18:47:311 CST [DEBUG] header - << "Set-Cookie: > lastHitTime=1138299527074; Domain=.netflix.com; Path=/[\r][\n]" > 2006/01/26 12:18:47:311 CST [DEBUG] header - << "Set-Cookie: country=1; > Domain=.netflix.com; Expires=Fri, 26-Jan-2007 18:18:47 GMT; > Path=/[\r][\n]" > 2006/01/26 12:18:47:311 CST [DEBUG] header - << "Set-Cookie: > nflxsid=102; Domain=.netflix.com; Path=/[\r][\n]" > 2006/01/26 12:18:47:311 CST [DEBUG] header - << "Set-Cookie: > NetflixSession=102.4FBDC606AA1BE45C6AC7D6AD370B710E; > Domain=.netflix.com; Path=/[\r][\n]" > 2006/01/26 12:18:47:311 CST [DEBUG] header - << "Set-Cookie: > NetflixCookies=persistent; Domain=.netflix.com; Expires=Sat, 25-Feb-2006 > 18:18:47 GMT; Path=/[\r][\n]" > 2006/01/26 12:18:47:311 CST [DEBUG] header - << "Set-Cookie: > nonPersistent=; Domain=.netflix.com; Expires=Thu, 01-Jan-1970 00:00:10 > GMT; Path=/[\r][\n]" > 2006/01/26 12:18:47:311 CST [DEBUG] header - << "Location: > http://www.netflix.com/Queue[\r][\n]" > 2006/01/26 12:18:47:311 CST [DEBUG] header - << "Content-Type: > text/plain[\r][\n]" > 2006/01/26 12:18:47:311 CST [DEBUG] header - << "Content-Length: > 0[\r][\n]" > 2006/01/26 12:18:47:311 CST [DEBUG] header - << "X-Cache: MISS from > proxy.dmotorworks.com[\r][\n]" > 2006/01/26 12:18:47:311 CST [DEBUG] header - << "Proxy-Connection: > keep-alive[\r][\n]" > 2006/01/26 12:18:47:311 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; ARPT=KYXPKPS10.1.121.32CKKWI; $Path=/" > 2006/01/26 12:18:47:311 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; lastHitTime=1138299527074; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:311 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; country=1; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:311 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; nflxsid=102; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:311 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; NetflixSession=102.4FBDC606AA1BE45C6AC7D6AD370B710E; > $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:311 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; NetflixCookies=persistent; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:326 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; nonPersistent=; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:326 CST [DEBUG] HttpMethodDirector - Redirect > required > 2006/01/26 12:18:47:326 CST [DEBUG] HttpMethodDirector - Redirect > requested to location 'http://www.netflix.com/Queue' > 2006/01/26 12:18:47:326 CST [DEBUG] HttpMethodDirector - Redirecting > from 'http://www.netflix.com:80/Queue' to 'http://www.netflix.com/Queue > 2006/01/26 12:18:47:326 CST [DEBUG] HttpMethodDirector - Execute > redirect 2 of 100 > 2006/01/26 12:18:47:326 CST [DEBUG] HttpMethodBase - Should NOT close > connection in response to directive: keep-alive > 2006/01/26 12:18:47:326 CST [DEBUG] HttpConnection - Connection is > locked. Call to releaseConnection() ignored. > 2006/01/26 12:18:47:326 CST [DEBUG] header - >> "GET > http://www.netflix.com/Queue HTTP/1.0[\r][\n]" > 2006/01/26 12:18:47:326 CST [DEBUG] HttpMethodBase - Adding Host request > header > 2006/01/26 12:18:47:326 CST [DEBUG] header - >> "User-Agent: Jakarta > Commons-HttpClient/3.0[\r][\n]" > 2006/01/26 12:18:47:326 CST [DEBUG] header - >> "Proxy-Connection: > Keep-Alive[\r][\n]" > 2006/01/26 12:18:47:326 CST [DEBUG] header - >> "Host: > www.netflix.com[\r][\n]" > 2006/01/26 12:18:47:326 CST [DEBUG] header - >> "Cookie: $Version=0; > testSvrRdrct=N; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:326 CST [DEBUG] header - >> "Cookie: $Version=0; > ARPT=KYXPKPS10.1.121.32CKKWI; $Path=/[\r][\n]" > 2006/01/26 12:18:47:326 CST [DEBUG] header - >> "Cookie: $Version=0; > lastHitTime=1138299527074; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:326 CST [DEBUG] header - >> "Cookie: $Version=0; > country=1; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:326 CST [DEBUG] header - >> "Cookie: $Version=0; > nflxsid=102; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:326 CST [DEBUG] header - >> "Cookie: $Version=0; > NetflixSession=102.4FBDC606AA1BE45C6AC7D6AD370B710E; $Path=/; > $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:326 CST [DEBUG] header - >> "Cookie: $Version=0; > NetflixCookies=persistent; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:326 CST [DEBUG] header - >> "[\r][\n]" > 2006/01/26 12:18:47:498 CST [DEBUG] header - << "HTTP/1.0 302 Moved > Temporarily[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "Set-Cookie: > ARPT=KYXPKPS10.1.121.57CKKWW; path=/[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "Date: Thu, 26 Jan 2006 > 18:18:47 GMT[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "Server: Apache > Coyote/1.0[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "P3P: CP="CAO DSP COR > DEVa TAIa OUR BUS UNI STA"[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "Set-Cookie: > lastHitTime=1138299526080; Domain=.netflix.com; Path=/[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "Set-Cookie: country=1; > Domain=.netflix.com; Expires=Fri, 26-Jan-2007 18:18:47 GMT; > Path=/[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "Set-Cookie: > nflxsid=127; Domain=.netflix.com; Path=/[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "Set-Cookie: > NetflixSession=127.4FC29C5D9ACFD2EB7924A407C1CFD4B1; > Domain=.netflix.com; Path=/[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "Set-Cookie: dma=635; > Domain=.netflix.com; Expires=Fri, 26-Jan-2007 18:18:47 GMT; > Path=/[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "Set-Cookie: > promo=51401915~0~1138348800000~~51401915~1138299527414~51401915~11382995 > 27415~~~; Domain=.netflix.com; Expires=Fri, 26-Jan-2007 18:18:47 GMT; > Path=/[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "Set-Cookie: fcat=Walk > On; Domain=.netflix.com; Path=/[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "Set-Cookie: > custTrans=Y; Domain=.netflix.com; Expires=Fri, 26-Jan-2007 18:18:47 GMT; > Path=/[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "Set-Cookie: fvinc=Y; > Domain=.netflix.com; Expires=Fri, 27-Jan-2006 07:59:59 GMT; > Path=/[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "Set-Cookie: > isaffiliate=N; Domain=.netflix.com; Path=/[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "Set-Cookie: mqsoc=; > Domain=.netflix.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; > Path=/[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "Set-Cookie: fvp=/Queue; > Domain=.netflix.com; Expires=Fri, 27-Jan-2006 07:59:59 GMT; > Path=/[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "Location: > http://www.netflix.com/Signin?nextpage=http%3A%2F%2Fwww.netflix.com%2FQu > eue[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "Content-Type: > text/plain[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "Content-Length: > 0[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "X-Cache: MISS from > proxy.dmotorworks.com[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] header - << "Proxy-Connection: > keep-alive[\r][\n]" > 2006/01/26 12:18:47:514 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; ARPT=KYXPKPS10.1.121.57CKKWW; $Path=/" > 2006/01/26 12:18:47:514 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; lastHitTime=1138299526080; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:529 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; country=1; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:529 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; nflxsid=127; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:529 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; NetflixSession=127.4FC29C5D9ACFD2EB7924A407C1CFD4B1; > $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:529 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; dma=635; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:529 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; > promo=51401915~0~1138348800000~~51401915~1138299527414~51401915~11382995 > 27415~~~; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:529 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; fcat=Walk On; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:529 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; custTrans=Y; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:545 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; fvinc=Y; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:545 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; isaffiliate=N; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:545 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; mqsoc=; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:545 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; fvp=/Queue; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:545 CST [DEBUG] HttpMethodDirector - Redirect > required > 2006/01/26 12:18:47:545 CST [DEBUG] HttpMethodDirector - Redirect > requested to location > 'http://www.netflix.com/Signin?nextpage=http%3A%2F%2Fwww.netflix.com%2FQ > ueue' > 2006/01/26 12:18:47:561 CST [DEBUG] HttpMethodDirector - Redirecting > from 'http://www.netflix.com:80/Queue' to 'http://www.netflix.com/Signin > 2006/01/26 12:18:47:561 CST [DEBUG] HttpMethodDirector - Execute > redirect 3 of 100 > 2006/01/26 12:18:47:561 CST [DEBUG] HttpMethodBase - Should NOT close > connection in response to directive: keep-alive > 2006/01/26 12:18:47:561 CST [DEBUG] HttpConnection - Connection is > locked. Call to releaseConnection() ignored. > 2006/01/26 12:18:47:561 CST [DEBUG] header - >> "GET > http://www.netflix.com/Signin?nextpage=http%3A%2F%2Fwww.netflix.com%2FQu > eue HTTP/1.0[\r][\n]" > 2006/01/26 12:18:47:561 CST [DEBUG] HttpMethodBase - Adding Host request > header > 2006/01/26 12:18:47:561 CST [DEBUG] header - >> "User-Agent: Jakarta > Commons-HttpClient/3.0[\r][\n]" > 2006/01/26 12:18:47:561 CST [DEBUG] header - >> "Proxy-Connection: > Keep-Alive[\r][\n]" > 2006/01/26 12:18:47:561 CST [DEBUG] header - >> "Host: > www.netflix.com[\r][\n]" > 2006/01/26 12:18:47:561 CST [DEBUG] header - >> "Cookie: $Version=0; > testSvrRdrct=N; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:561 CST [DEBUG] header - >> "Cookie: $Version=0; > NetflixCookies=persistent; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:561 CST [DEBUG] header - >> "Cookie: $Version=0; > ARPT=KYXPKPS10.1.121.57CKKWW; $Path=/[\r][\n]" > 2006/01/26 12:18:47:561 CST [DEBUG] header - >> "Cookie: $Version=0; > lastHitTime=1138299526080; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:561 CST [DEBUG] header - >> "Cookie: $Version=0; > country=1; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:561 CST [DEBUG] header - >> "Cookie: $Version=0; > nflxsid=127; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:561 CST [DEBUG] header - >> "Cookie: $Version=0; > NetflixSession=127.4FC29C5D9ACFD2EB7924A407C1CFD4B1; $Path=/; > $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:561 CST [DEBUG] header - >> "Cookie: $Version=0; > dma=635; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:561 CST [DEBUG] header - >> "Cookie: $Version=0; > promo=51401915~0~1138348800000~~51401915~1138299527414~51401915~11382995 > 27415~~~; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:561 CST [DEBUG] header - >> "Cookie: $Version=0; > fcat=Walk On; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:561 CST [DEBUG] header - >> "Cookie: $Version=0; > custTrans=Y; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:561 CST [DEBUG] header - >> "Cookie: $Version=0; > fvinc=Y; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:561 CST [DEBUG] header - >> "Cookie: $Version=0; > isaffiliate=N; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:576 CST [DEBUG] header - >> "Cookie: $Version=0; > fvp=/Queue; $Path=/; $Domain=.netflix.com[\r][\n]" > 2006/01/26 12:18:47:576 CST [DEBUG] header - >> "[\r][\n]" > 2006/01/26 12:18:47:764 CST [DEBUG] header - << "HTTP/1.0 200 > OK[\r][\n]" > 2006/01/26 12:18:47:764 CST [DEBUG] header - << "Set-Cookie: > ARPT=KYXPKPS10.1.121.37CKKWJ; path=/[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] header - << "Date: Thu, 26 Jan 2006 > 18:18:47 GMT[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] header - << "Server: Apache > Coyote/1.0[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] header - << "P3P: CP="CAO DSP COR > DEVa TAIa OUR BUS UNI STA"[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] header - << "Set-Cookie: > lastHitTime=1138299527233; Domain=.netflix.com; Path=/[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] header - << "Set-Cookie: country=1; > Domain=.netflix.com; Expires=Fri, 26-Jan-2007 18:18:47 GMT; > Path=/[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] header - << "Set-Cookie: > nflxsid=107; Domain=.netflix.com; Path=/[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] header - << "Set-Cookie: > NetflixSession=107.FFC3BCC032F0E2F1AA194C3C93C20410; > Domain=.netflix.com; Path=/[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] header - << "Set-Cookie: > NetflixShopperId=P1919613355171935974393281917077126; > Domain=.netflix.com; Expires=Fri, 26-Jan-2007 18:18:47 GMT; > Path=/[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] header - << "Set-Cookie: promo=; > Domain=.netflix.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; > Path=/[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] header - << "Set-Cookie: promo=; > Domain=.netflix.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; > Path=/[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] header - << "Set-Cookie: custProps=; > Domain=.netflix.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; > Path=/[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] header - << "Set-Cookie: > vstCnt=-6~-6~1138299527698; Domain=.netflix.com; Expires=Fri, > 26-Jan-2007 18:18:47 GMT; Path=/[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] header - << "Cache-Control: > no-cache, must-revalidate[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] header - << "Pragma: > no-cache[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] header - << "Expires: Wed, 25 Jan > 2006 18:18:47 GMT[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] header - << "Content-Type: > text/html; charset=ISO-8859-1[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] header - << "Content-Length: > 12538[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] header - << "X-Cache: MISS from > proxy.dmotorworks.com[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] header - << "Proxy-Connection: > keep-alive[\r][\n]" > 2006/01/26 12:18:47:779 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; ARPT=KYXPKPS10.1.121.37CKKWJ; $Path=/" > 2006/01/26 12:18:47:779 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; lastHitTime=1138299527233; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:779 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; country=1; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:779 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; nflxsid=107; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:779 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; NetflixSession=107.FFC3BCC032F0E2F1AA194C3C93C20410; > $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:795 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; NetflixShopperId=P1919613355171935974393281917077126; > $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:795 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; promo=; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:795 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; promo=; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:795 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; custProps=; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:795 CST [DEBUG] HttpMethodBase - Cookie accepted: > "$Version=0; vstCnt=-6~-6~1138299527698; $Path=/; $Domain=.netflix.com" > 2006/01/26 12:18:47:795 CST [DEBUG] HttpMethodBase - Buffering response > body > 2006/01/26 12:18:47:795 CST [DEBUG] content - << "<!DOCTYPE HTML PUBLIC > "-//W3C//DTD HTML 4.01 Transitional//EN">[\r][\n]" > 2006/01/26 12:18:47:795 CST [DEBUG] content - << "<html>[\r][\n]" > 2006/01/26 12:18:47:795 CST [DEBUG] content - << "<head>[\r][\n]" > > -----Original Message----- > From: Miguel A Paraz [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 26, 2006 12:25 AM > To: HttpClient User Discussion > Subject: Re: Posting behind a proxy > > On 1/26/06, Pullen, Matthew <[EMAIL PROTECTED]> wrote: > > I am trying to test the posting to a remote site using HTTPClient. I > am > > continually failing and was hoping someone could give me a pointer as > to > > what I am doing wrong. I have not had a chance to try it from outside > > the proxy, so that may have something to do with it, but I am not > sure. > > It gets the redirect back to the login page, which looks like a > failure > > to log in to me. I am stumped. > > I believe the Netflix page assumes a live browser with cookie support. > I tried a plain GET on https://www.netflix.com/Login - it redirects > to: > > Location: http://www.netflix.com/Login?tcw=1&cqs= > > Along with a whole lot of cookies being set. I think a successful > login requires the cookies to be set. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > This message and any attachments are intended only for the use of the > addressee and may contain information that is privileged and confidential. If > the reader of the message is not the intended recipient or an authorized > representative of the intended recipient, you are hereby notified that any > dissemination of this communication is strictly prohibited. If you have > received this communication in error, please notify us immediately by e-mail > and delete the message and any attachments from your system. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
