binary file upload via msinet execute post
Hello,
Until someone suggested that I use msinet in vb6, I spent weeks studying the http protocol to figure out how to upload a binary file to a secure web site. I learned that the 'body' of a post request to upload a file was supposed to contain:
*
boundary=ZXBXabFIR9X6v1ZgmVhB27Pie975YU0s
Content-Length: nnnn (length of remaining data)
CrLf
--ZXBXabFIR9X6v1ZgmVhB27Pie975YU0s
Content-Disposition: form-data; name="upfile"; uploadname="fname"
Content-Type: application/octet-stream
CrLf
(data here)
--ZXBXabFIR9X6v1ZgmVhB27Pie975YU0s--
*
My question is:
Do I just give the binary file string to inet1 as the data for a Post request? Or do I surround the data with all/some of the above?
Thanks
ftbrady
|