卷曲错误56“从对等方接收数据时失败”。发送.tar.gz文件时 [英] Curl Error 56 "Failure when receiving data from the peer" while sending .tar.gz File
问题描述
此CURL调用存在问题:
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
我收到此错误:
卷曲:(56)从对等方接收数据时失败
curl: (56) Failure when receiving data from the peer
但是如果我这样做CURL:
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
效果很好。
为什么?
推荐答案
cURl错误56
可能有不同的原因,例如:
cURl error 56
can have different reason like:
- 将数据上传到URL本身而不是
POST
- 可能是代理将请求阻止到服务器。
- 在在某些情况下,服务器不支持特定请求,例如某些服务器支持
PUT / POST
其中任何一个。
- Passing data to be uploaded in URL itself instead of
POST
request - Probably Proxy blocking the request to the server.
- In some cases, server do not support particular request, like some servers support
PUT/POST
any one of them.
上次收到此错误时,它是代理阻止了对服务器的请求。
When I received this error last time, it was proxy blocking the request to the server.
但是在您的情况下,无法正常工作:
But in your case, in non working case:
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
您已在URL本身中附加了文件 POST
,该位置实际上是服务器上不可用的位置,
you have appended the file to be POST
in URL itself, which is the location actually not available on server,
这些可能是不确定的原因,很早以前我在玩cURL命令行时就遇到了。
These can be reason not sure, it happened to me long back while playing with cURL command-line.
这篇关于卷曲错误56“从对等方接收数据时失败”。发送.tar.gz文件时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!