06-30-2015 10:24 AM - edited 06-30-2015 10:27 AM
Hello everybody, I'm trying to implement an HTTP POST method.
HTML code corresponding to what I want to accomplish is below.
I would like to upload via HTTP POST to a CSV file on the server ebay.
I have attached you to connect the client side, but does not work, it always returns:
An unknown problem interrupted the file transfer. Please try again
Can you help me figure out where I went wrong?
Clearly I canceled my token. 🙂
THANKS
HTML CODE:
POST /path/to/upload/script HTTP/1.0
Connection: Keep-Alive
User-Agent: My Client App v1.0
Host:
https://bulksell.ebay.com/ws/eBayISAPI.dll?FileExchangeUpload
Content-type: multipart/form-data;
boundary=THIS_STRING_SEPARATES
Content-Length: 256
--THIS_STRING_SEPARATES
Content-Disposition: form-data; name="token"
12345678987654321
--THIS_STRING_SEPARATES
Content-Disposition: form-data; name="file";
filename="listings.csv"
Content-Type: text/csv
... contents of listings.csv ...
--THIS_STRING_SEPARATES-
LABVIEW CODE:
07-01-2015 01:32 AM
SOS Please ..... 🙂
07-01-2015 03:29 AM
How big is the file? Maybe the request is timing out or it exceed the POST limits for the server.
I would try with a simple file and I would also write a test script on the web server that dumps the contents of POST (and any files) to a file so you can see what the server is receiving.
07-01-2015 09:15 AM
The FAQ shows some limits for the file format: http://pages.ebay.com/sellerinformation/sellingresources/fileexchange_faqs.html
07-01-2015 09:32 AM
I do not think it's a problem of file , the file size is 17KB 😞