curl-users
Re: using an http proxy for ftp downloads
Date: Tue, 12 Jul 2011 18:04:54 -0500
Hi Daniel... thanks for the response.
I did use the -v option and found that curl would hang right after
communicating with the proxy server. But the -x option kept going.
I searched through the release notes, but didn't find anything obvious that
seemed to match my issue. Although, after your response I logged in to a
Suse 11.4 box that I had sitting around which has curl 7.21.2 installed. It
works correctly with both the environment variables and '-x' for ftp
downloads.
So... it must have been fixed. I just need to figure out how to get a newer
curl on Mac OSX. I currently use HomeBrew (http://mxcl.github.com/homebrew/)
which doesn't like to override the default curl because it causes trouble.
Thanks for the help...
On Tue, Jul 12, 2011 at 5:18 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> 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<http://cool.haxx.se/list/listinfo/curl-users>
> FAQ: http://curl.haxx.se/docs/faq.**html<http://curl.haxx.se/docs/faq.html>
> Etiquette: http://curl.haxx.se/mail/**etiquette.html<http://curl.haxx.se/mail/etiquette.html>
>
-------------------------------------------------------------------
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