in reply to HTTP Headers Problem

Without seeing your code, it's difficult to guess exactly what is causing problems for you. Can you post a small piece of code that reproduces your problem?

Off the top of my head, some problems you might run into are:

Also, you might find LWP+cgi file upload problems helpful.

Replies are listed 'Best First'.
Re: Re: HTTP Headers Problem
by gr0f (Acolyte) on Aug 27, 2001 at 18:15 UTC
    No problem. Here is the actual HTML used in the page (I had to pull the other from memory since the website seems to be down ;), and the Perl code:
    <FORM METHOD=POST ACTION="http://www.environet.gov.on.ca/dwws-app/DWWS +App?cmd=UploadSubmPage.uploadSubm" ENCTYPE="multipart/form-data"> <input type="hidden" name="works_id" value="3253245"> <input type="hidden" name="lab_id" value="2435325"> <input type="file" name="filename"> </FORM>
    And the Perl code responsible:
    $FileName = ("C:\\Scripts\\moe\\swap\\$LotNumber.txt"); my $request = POST ('http://www.environet.gov.on.ca/dwws-app/DWWSApp?c +md=UploadSubmPage.uploadSubm', Content_Type=> 'form-data', Content => [works_id=>'2353245', lab_id=>'456436', filename=>[$FileName]]);
    The '?' character being escaped sounds like it may be significant. Anyways, hope this helps...

    -Tim