[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What the web service developer said, Re: AW: Sending binary data to a web service



On 10/7/16, 3:15 PM, Scott Klement wrote:
You need to understand what the web service is looking for.

I forwarded all the gory details to the web service developer, and got this back:

Hello James:
The data from your "multipart_form_data.text" shows that the request you
send is application/octet-stream format, not "multipart/form-data" format
-----------------------------------
Content-Type: application/octet-stream
------------------------------

and the correct format should something like :

-----------------------------------
Content-Type: multipart/form-data;
boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
Cache-Control: no-cache
Postman-Token: c3d85a6c-9849-7e3e-5c89-5b994b335b1d

----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="001000000001324.zip"
----------------------------------

So, these are two different way to submit file, if you google
"application/octet-stream" and " multipart/form-data", it will tell you the
different.

Now what?

--
JHHL
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------