cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl: (26) Received error code 502 from proxy

From: Alexander Lazic <al-curlusers_at_none.at>
Date: Wed, 23 Aug 2006 10:02:46 +0200

Hi,

On Mit 23.08.2006 15:48, Harry Pratama wrote:
>
>Hi, anyone can help with this error I get when trying to transfer file
>using curl. The command is :
>
> $ curl --proxytunnel -x ftp://www-proxy.wyharcorp.com:80 --user \
> username:password -T /home/linda/test.txt --url \
> ftp://ftp.destana.com/in_dir/
>
> curl: (26) Received error code 502 from proxy

As curl said the server send you 502 which is a server error:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.3

---
10.5.3 502 Bad Gateway
The server, while acting as a gateway or proxy, received an invalid
response from the upstream server it accessed in attempting to fulfill
the request.
---
regards
Alex
Received on 2006-08-23