LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP POST

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:

 

Image1.png

0 Kudos
Message 1 of 5
(3,989 Views)

SOS Please ..... 🙂

0 Kudos
Message 2 of 5
(3,931 Views)

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.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 3 of 5
(3,915 Views)

The FAQ shows some limits for the file format: http://pages.ebay.com/sellerinformation/sellingresources/fileexchange_faqs.html

 


Milan
0 Kudos
Message 4 of 5
(3,891 Views)

I do not think it's a problem of file , the file size is 17KB 😞

0 Kudos
Message 5 of 5
(3,880 Views)