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

cURl error 56 can have different reason like:

  1. Passing data to be uploaded in URL itself instead of POST request
  2. Probably Proxy blocking the request to the server.
  3. 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

you have appended the file to be POST in URL itself, which is the location actually not available on server,

These can be reason not sure, it happened to me long back while playing with cURL command-line.

Leave a Comment