[ftputil] FTP Through HTTP Proxy

Stefan Schwarzer sschwarzer at sschwarzer.net
Mon Mar 26 18:07:12 CEST 2007


Hi Alexander,

On 2007-03-26 17:04, Alexander Michael wrote:
> On 3/25/07, Stefan Schwarzer <sschwarzer at sschwarzer.net> wrote:
>> Do you have any FTP proxies set in your browser configuration?
>
> Yes. I set the HTTP proxy (the usual host "proxy" on port "8080") and
> checked "Use this proxy server for all protocols."

The HTTP proxy and FTP proxy are independent on each other (with
the exception that the provider may use the same host for both
proxies, but also then you can treat the proxies as independent).
So if you use the ftp:// protocol, the HTTP proxy shouldn't
matter at all.

>> If you are using a Unix-type operating system, you should also
>> look at the ftp_proxy environment variable.
>
> I futzed with this, but couldn't get it to work. I'm working on both
> linux and Windows, but testing on linux. The linux FTP client doesn't
> seem to use FTP_PROXY, and I can't ftp into the HTTP proxy server.

To my surprise, the environment variable is usually ftp_proxy
(lowercase) though generally environment variables are all
uppercase. Please try the lowercase va

>> Can you directly log into the FTP server with a standalone FTP
>> client? It may be that the company indeed shut down the FTP proxy -
>> and you now can access the server directly. :-)
>
> I used to be able to do this. :)

And ... now, without any proxy settings? :-)

>> Does that help?
>
> Yes, it does. I am operating outside my realm of expertise (if indeed
> I have such a realm) and these are good questions to ask myself as I
> work to solve this issue. Thank you for responding.
>
> Here's what I've been able to make work outside of Firefox (I cobbled
> this together from some Google searches):
>
> import urllib2
[...]

You shouldn't use complicated code unless you are sure you need
it. :-) I suggest to try the direct login first if you haven't
already done so.

Stefan



More information about the ftputil mailing list