cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: using an http proxy for ftp downloads

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 13 Jul 2011 00:18:29 +0200 (CEST)

On Tue, 12 Jul 2011, TJ Herring wrote:

> I have followed the instructions to set the http_proxy, ALL_PROXY
> environment variables. This works correctly for http transfers, but I can't
> seem to make it work for ftp.

It works for me.

> 1. export http_proxy=http://username:password@proxy.my.domain:8080
> 2. export ALL_PROXY=$http_proxy
> 3. Invoke 'curl ftp://ftp.kernel.org'
> 4. This results in a long wait time eventually timing out. The message
> displayed is : 'curl: (7) Failed to connect to 2001:4f8:8:10:1994:313:1:::
> No route to host''

Did you try adding -v to see what curl tried to do?

> This DOES work:
> 1. Invoke 'curl -x http://username:password@proxy.my.domain:8080
> ftp://ftp.kernel.org

That's strange and I don't know why. I wonder if there possibly was some proxy
bug in the version you use.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-07-13