in reply to How can I upload a file using HTTP POST with Content-Type=multipart/form-data?
This is an actual header that I sniffed coming from IE 5 on Win NT. I cannot seem to reproduce this header - even hardcoded - to upload tPOST /cgi-bin/upload.pl HTTP/1.1 Accept: application/vnd.ms-excel, application/msword, application/vnd. +ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, a +pplication/pdf, */* Referer: http://deville/cgi-bin/upload.pl Accept-Language: en-us Content-Type: multipart/form-data; boundary=-------------------------- +-7d03135102b8 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT) Host: deville Content-Length: 316 Connection: Keep-Alive -----------------------------7d03135102b8 Content-Disposition: form-data; name="file"; filename="D:\hess\dev\www +\notes\hello.txt" Content-Type: text/plain Hello there -----------------------------7d03135102b8 Content-Disposition: form-data; name="done" done -----------------------------7d03135102b8--
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: Answer: How can I upload a file using HTTP POST with Content-Type=multipart/form-data?
by merlyn (Sage) on Sep 19, 2000 at 08:22 UTC | |
by bhess (Initiate) on Sep 19, 2000 at 15:14 UTC | |
by Jouke (Curate) on Sep 19, 2000 at 16:13 UTC | |
by Anonymous Monk on Dec 30, 2004 at 04:43 UTC |