Here is more....

$URL = 'http://www.dhl.com/cgi-bin/cgiProgram.cgi?Field=';
$URL .= $Field;
$request = HTTP::Request->new(GET=> $URL);
$ua = LWP::UserAgent->new;
$response = $ua->request($request);

Martin Cloutier

Lillith Lesanges wrote:

> I'm trying to write a perl client that emulates submitting a form with the
> following fields: a text username, a text password, and a FILE type
> file.  If I use a browser, the file gets MIME-encoded (and this is what
> the cgi-bin getting the submission expects).
>
> But I can't figure out how to do this with libwww.  The FAQ and lwpcook
> don't have examples of how to do this, just plaintext files.  I can send
> plaintext (not helpful), I am connecting to the server (I tested against a
> text-only form), if I send just the file, it doesn't come across right (I
> don't even get headers on the other side! (I am testing this against a
> fake web server that just outputs to file.)), and I can't figure out how
> to make it put the right headers on to handle the MIME.  Is there a LWP or
> HTTP routine that will help me that I am somehow overlooking?
>
> Any help would be appreciated.
>
> Lillith Lesanges
>
> Systems Administrator                           e: [EMAIL PROTECTED]
> XpresscheX, Inc.                                v: 505-998-3141 x3712

Reply via email to