There doesn't seem to be anything immediately wrong with this, and several people have confirmed that the header it generates looks ok. Yet with this generated header, the website spits back an error. The header:my $req = POST ('http://www.environet.gov.on.ca/dwws-app/DWWSApp?cmd=U +ploadSubmPage.uploadSubm', Content_Type => 'form-data', Content => [ works_id => '210000586', lab_id => '48', filename => [$FileName] + ] );
Produces this error response:POST http://www.environet.gov.on.ca/dwws-app/DWWSApp?cmd=UploadSubmPag +e.uploadSubm Content-Length: 11073 Content-Type: multipart/form-data; boundary=xYzZY --xYzZY Content-Disposition: form-data; name="works_id" 210000586 --xYzZY Content-Disposition: form-data; name="lab_id" 48 --xYzZY Content-Disposition: form-data; name="filename"; filename="210000586-2 +10001130.txt" Content-Length: 10760 Content-Type: text/plain
Perhaps there is something missing from the 'Content-Type: text/plain' line? It would be interesting to see what headers browsers like IE and Mozilla generate, since they seem to have no problem uploading these files in this manner. Got any bright ideas guys?Malformed line after disposition: Content-Length: 10760
-Thanks, Tim
In reply to Still Unsolved HTTP Headers Problem by gr0f
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |