gr0f has asked for the wisdom of the Perl Monks concerning the following question:
and the header it generates:$request = POST ('http://www.environet.gov.on.ca/dwws-app/DWWSApp? +cmd=UploadSubmPage.uploadSubm', Content_Type => 'form-data', Content => [ works_id=>'300002167', lab_id=>'48', filename=>['260015626-220006440.txt'] ] ); print OutFile $request->as_string; $response = $ua->request($request, 'output2.html');
This seems just dandy to me, however the server spits back an error that says 'Malformed line after disposition: Content-Length 2769'. It would appear that it doesn't like the next line. Why I'm not sure... Any suggestions on a course of action? Thanks, Tim.POST http://www.environet.gov.on.ca/dwws-app/DWWSApp?cmd=UploadSubmPag +e.uploadSubm Content-Length: 3059 Content-Type: multipart/form-data; boundary=xYzZY --xYzZY Content-Disposition: form-data; name="works_id" 300002167 --xYzZY Content-Disposition: form-data; name="lab_id" 48 --xYzZY Content-Disposition: form-data; name="filename"; filename="260015626-2 +20006440.txt" Content-Length: 2769 Content-Type: text/plain
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTTP Headers Problem
by vladb (Vicar) on Jul 11, 2002 at 15:16 UTC | |
by gr0f (Acolyte) on Jul 11, 2002 at 15:36 UTC | |
by BorgCopyeditor (Friar) on Jul 11, 2002 at 17:56 UTC | |
by mikeirw (Pilgrim) on Jul 11, 2002 at 18:28 UTC | |
by gr0f (Acolyte) on Jul 11, 2002 at 19:04 UTC | |
|
Re: HTTP Headers Problem
by hossman (Prior) on Jul 11, 2002 at 22:32 UTC | |
by gr0f (Acolyte) on Jul 12, 2002 at 14:46 UTC |