bordemstirs
Member
Not sure if bug or feature, but it seems that visit_url() handles redirect requests differently in a relay override than a regular script.
Same code, 2 debug logs:
relay
and regular script
Can these be morphed together or is there at least a work-around for getting this in a relay script?
Same code, 2 debug logs:
relay
Code:
Connecting to clan_dreadsylvania.php...
Requesting: http://www.kingdomofloathing.com/clan_dreadsylvania.php?action=forceloc&loc=7
2 request properties
Field: Cookie = [appserver=www8; PHPSESSID=kmud4rlk4vssfgfu1im5752o47]
Field: User-Agent = [KoLmafia v16.0]
Retrieving server reply...
Retrieved: http://www.kingdomofloathing.com/clan_dreadsylvania.php?action=forceloc&loc=7
11 header fields
Field: null = [HTTP/1.1 302 Found]
Field: Date = [Sun, 18 Aug 2013 03:05:58 GMT]
Field: Content-Length = [0]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Location = [adventure.php?snarfblat=340]
Field: Content-Type = [text/html; charset=UTF-8]
Field: Connection = [keep-alive]
Field: Server = [nginx/0.8.55]
Field: X-Powered-By = [PHP/5.3.3]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Field: Pragma = [no-cache]
Function visit_url returned:
and regular script
Code:
Connecting to clan_dreadsylvania.php...
Requesting: http://www.kingdomofloathing.com/clan_dreadsylvania.php?action=forceloc&loc=7
2 request properties
Field: Cookie = [appserver=www8; PHPSESSID=kmud4rlk4vssfgfu1im5752o47]
Field: User-Agent = [KoLmafia v16.0]
Retrieving server reply...
Retrieved: http://www.kingdomofloathing.com/clan_dreadsylvania.php?action=forceloc&loc=7
11 header fields
Field: null = [HTTP/1.1 302 Found]
Field: Date = [Sun, 18 Aug 2013 03:09:52 GMT]
Field: Content-Length = [0]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Location = [adventure.php?snarfblat=340]
Field: Content-Type = [text/html; charset=UTF-8]
Field: Connection = [keep-alive]
Field: Server = [nginx/0.8.55]
Field: X-Powered-By = [PHP/5.3.3]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Field: Pragma = [no-cache]
Connecting to adventure.php...
Requesting: http://www.kingdomofloathing.com/adventure.php?snarfblat=340
2 request properties
Field: Cookie = [appserver=www8; PHPSESSID=kmud4rlk4vssfgfu1im5752o47]
Field: User-Agent = [KoLmafia v16.0]
Retrieving server reply...
Retrieved: http://www.kingdomofloathing.com/adventure.php?snarfblat=340
11 header fields
Field: null = [HTTP/1.1 302 Found]
Field: Date = [Sun, 18 Aug 2013 03:09:52 GMT]
Field: Content-Length = [0]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Location = [choice.php?forceoption=0]
Field: Content-Type = [text/html; charset=UTF-8]
Field: Connection = [keep-alive]
Field: Server = [nginx/0.8.55]
Field: X-Powered-By = [PHP/5.3.3]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Field: Pragma = [no-cache]
Connecting to choice.php...
Requesting: http://www.kingdomofloathing.com/choice.php?forceoption=0
2 request properties
Field: Cookie = [appserver=www8; PHPSESSID=kmud4rlk4vssfgfu1im5752o47]
Field: User-Agent = [KoLmafia v16.0]
Retrieving server reply...
Retrieved: http://www.kingdomofloathing.com/choice.php?forceoption=0
10 header fields
Field: null = [HTTP/1.1 200 OK]
Field: Date = [Sun, 18 Aug 2013 03:09:52 GMT]
Field: Content-Length = [4484]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Content-Type = [text/html; charset=UTF-8]
Field: Connection = [keep-alive]
Field: Server = [nginx/0.8.55]
Field: X-Powered-By = [PHP/5.3.3]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Field: Pragma = [no-cache]
Retrieving server reply
ResponseText has 4484 characters.
Can these be morphed together or is there at least a work-around for getting this in a relay script?