Hello all:

I'm trying to upload files using HttpCli.
What would be the correct "Content-Type" into multipart frame if I upload Binary files? (see "<*<*<????>*>*>" bellow)



Host: http://www.abc.com/test.asp
POST method
Content-Type: multipart/form-data; boundary=---------------------------7d57d7c03b6
Accept-Encoding: gzip, deflate
Cache-Control: no-cache



DATA:


-----------------------------7d57d7c03b6 Content-Disposition: form-data; name="node"

14
-----------------------------7d57d7c03b6
Content-Disposition: form-data; name="path"; filename="C:\test.bin"
Content-Type: <*<*<????>*>*>


<*<*<BINARY DATA HERE>*>*>

-----------------------------7d57d7c03b6
Content-Disposition: form-data; name="upload"

Accept
-----------------------------7d57d7c03b6--



I tried "Content-Type: Base64" but the webserver has never decoded it and just passed out to the file (in Base64!).

thanks in advance,

David


-- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

Reply via email to