取消
顯示結果 
搜尋替代 
您的意思是: 

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 積分
1 條訊息(共 5 條)
4,932 檢視

SOS Please ..... 🙂

0 積分
2 條訊息(共 5 條)
4,874 檢視

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 積分
3 條訊息(共 5 條)
4,858 檢視

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

 


Milan
0 積分
4 條訊息(共 5 條)
4,834 檢視

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

0 積分
5 條訊息(共 5 條)
4,823 檢視