curl-commandline

Curl Error 56 “Failure when receiving data from the peer” while sending .tar.gz File

你说的曾经没有我的故事 提交于 2020-08-27 02:42:04
问题 I have a problem with this CURL call: curl -X POST \ --data-binary '@File01.tar.gz' \ http://website.intra.prova.it/gore-orgac/PINGU/TEST/lots/Test_017/content/files/File02.tar.gz And I receive this error: curl: (56) Failure when receiving data from the peer But if I do this CURL: curl -X POST \ --data-binary '@File01.tar.gz' \ http://website.intra.prova.it/gore-orgac/PINGU/TEST/lots/Test_017/content/files/File02 Its works well. Why is that? 回答1: cURl error 56 can have different reason like:

how to use curl --ftp-create-dirs?

廉价感情. 提交于 2020-01-02 05:40:10
问题 Background I have been searching the Internet trying to find an example of --ftp-create-dirs . Overall my goal is to use "--ftp-create-dirs" to automatically create the necessary folders if they are not present when I upload my file. Problem The problem is I don't know the exact syntax for properly using --ftp-create-dirs , can someone help me with this? My current curl: curl -k -T 000-0000-0000-000.png -u [username]:[pass] --ftp-create-dirs /test --ftp-ssl ftp:[ftp server] In the example

How Can I Post Files and JSON Data Together With Curl?

a 夏天 提交于 2019-12-21 07:55:45
问题 I've been posting a file with this curl command: curl -i -F file=@./File.xlsm -F name=file -X POST http://example.com/new_file/ Now I want to send some information about the file (as JSON) along with the file. curl -i -H "Content-Type: application/json" -d '{"metadata": {"comment": "Submitting a new data set.", "current": false }, "sheet": 1, "row": 7 }' -F file=@./File.xlsm -F name=file http://example.com/new_file/ Curl is very grumpy about being used in this completely incorrect way, and in

how to use curl --ftp-create-dirs?

馋奶兔 提交于 2019-12-05 12:41:36
Background I have been searching the Internet trying to find an example of --ftp-create-dirs . Overall my goal is to use "--ftp-create-dirs" to automatically create the necessary folders if they are not present when I upload my file. Problem The problem is I don't know the exact syntax for properly using --ftp-create-dirs , can someone help me with this? My current curl: curl -k -T 000-0000-0000-000.png -u [username]:[pass] --ftp-create-dirs /test --ftp-ssl ftp:[ftp server] In the example above, I am trying to upload the .png image and create /test on the ftp server if it does not exist.