Re: HTTP::Cookies inquiry
Jay J (3pound@iname.com)
Tue, 17 Aug 1999 19:22:24 -0500
----- Original Message -----
From: S. Morgan Friedman <morgan@westegg.com>
To: <libwww-perl@ics.uci.edu>
Sent: Tuesday, August 17, 1999 2:18 PM
Subject: HTTP::Cookies inquiry
[snip]
> however... i then try to fill out the form
> on this page. whenever i do this, their
> server returns a blank page. from my attempts
> to place a cookie on the earlier pages, i
> discovered that their server responds to
> requests when their is no cookie by just
> returning a blank page -- hence i know that
> this is a cookie problem. i have no idea
> what i'm doing wrong, here is the code,
> it is very straightforward.
>
> please let me know if you have any clues.
> i'm clueless. thanks! :)
>
> steven morgan friedman
use LWP::Debug qw(+);
.. will produce volumes of debugging information, and may prove useful.
If that doesn't solve things, there's a good possibilty that this crafty
site is checking for a 'referer' .. in which case I use something like this:
$req->referer($referer) if ($referer_switch);
Using a switch is obviously not required.. but I use it to avoid
unnecessarily telling Site B that I just came from Site A.
If all else fails, I'd make certain you haven't missed any hidden fields. By
using cookies, referer and returning hidden fields I haven't found a site
that won't eventually relinquish the requested document ;-)
-Jay J
[-- A=!(A) unless ($aristotle); --]