coderanger
Member
Just for tracking purposes, this redirects outside of mafia, which you aren't logged in to so it dumps to the front page.
Requesting: http://www.kingdomofloathing.com/account_subscription.php
2 request properties
Field: Cookie = [appserver=www10; PHPSESSID=ai0uh6k5i0jkg2dtddnim54d96]
Field: User-Agent = [Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0]
Retrieving server reply...
Retrieved: http://www.kingdomofloathing.com/account_subscription.php
11 header fields
Field: null = [HTTP/1.1 302 Found]
Field: location = [https://www.kingdomofloathing.com/account_subscription.php]
Field: Date = [Mon, 08 Dec 2014 04:21:23 GMT]
Field: Content-Length = [0]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Connection = [keep-alive]
Field: Content-Type = [text/html; charset=UTF-8]
Field: X-Powered-By = [PHP/5.3.3]
Field: Server = [nginx/1.0.15]
Field: Pragma = [no-cache]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
-----To Browser-----
HTTP/1.1 302 Found
Date: Sun Dec 07 23:47:09 EST 2014
Server: KoLmafia v16.7
Location: https://www.kingdomofloathing.com/account_subscription.php
Connection: close
I was wrong.I don't see any "location" field to tell us where to redirect to. Therefore, I couldn't say why it works in a browser but not in KoLmafia.
-----From Browser-----
GET /account_subscription.php HTTP/1.1
Host: 127.0.0.1:60080
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://127.0.0.1:60080/mrstore.php
Cookie: chatpwd=224; charpwd=200
Connection: keep-alive
----------
class net.sourceforge.kolmafia.request.RelayRequest
Connecting to account_subscription.php...
Requesting: http://www.kingdomofloathing.com/account_subscription.php
2 request properties
Field: Cookie = [appserver=www11; PHPSESSID=lt7i06ngkh8jdgfis6qv4r63m1]
Field: User-Agent = [Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0]
Retrieving server reply...
Retrieved: http://www.kingdomofloathing.com/account_subscription.php
11 header fields
Field: null = [HTTP/1.1 302 Found]
Field: location = [https://www.kingdomofloathing.com/account_subscription.php]
Field: Date = [Mon, 08 Dec 2014 16:06:58 GMT]
Field: Content-Length = [0]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Connection = [keep-alive]
Field: Content-Type = [text/html; charset=UTF-8]
Field: X-Powered-By = [PHP/5.3.3]
Field: Server = [nginx/1.0.15]
Field: Pragma = [no-cache]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
-----To Browser-----
HTTP/1.1 302 Found
Date: Mon Dec 08 11:06:58 EST 2014
Server: KoLmafia v16.7
Location: https://www.kingdomofloathing.com/account_subscription.php
Connection: close
----------
Cookie: chatpwd=224; charpwd=200
Cookie = [appserver=www11; PHPSESSID=lt7i06ngkh8jdgfis6qv4r63m1]
From Browser:
GET http://127.0.0.1:60080/account_subscription.php
Referer:"http://127.0.0.1:60080/mrstore.php"
Cookie:"chatpwd=224; charpwd=200; appserver=www8; PHPSESSID=jtc2jo0vpd8oih7r1fuo33r4f3"
From KoLmafia to Browser:
302 Found
Location:"https://www.kingdomofloathing.com/account_subscription.php"
Set-Cookie:"appserver=www8
PHPSESSID=jtc2jo0vpd8oih7r1fuo33r4f3"
From Browser:
GET https://www.kingdomofloathing.com/account_subscription.php
Referer:"http://127.0.0.1:60080/mrstore.php"
Cookie:"_ga=GA1.2.1471852556.1403495195; appserver=www10; PHPSESSID=gk8deg6vhqvs8m37siqvjfi1m4"
From KoL to Browser:
302 Found
Location:"login.php?notloggedin=1"