Networking Forums

Networking Forums > Computer Networking > Linux Networking > Wget and proxy:question

Reply
Thread Tools Display Modes

Wget and proxy:question

 
 
leodp
Guest
Posts: n/a

 
      05-29-2006, 07:57 AM
Hi all,

I have a Linux PC behind a proxy; I can download stuff (http and ftp)
and surf with any browser once I set correctly the proxy, but wget
doesn't want to work.
I tried with and without the option --no-passive-ftp , and setting the
proxies in the env variables, and/or in the /etc/wgetrc file, and then
activating --use_proxy = on, in various combinations, but I'm still
stuck.
Searching the net has not helped; can anybody explain me what's exactly
the problem? Here is some output:

[leo@alab174 IFM]$ wget -S -d
ftp://ftp.gentoo.mesh-solutions.com/...tar.bz2.md5sum
DEBUG output created by Wget 1.10 on linux-gnu.

--18:55:03--
ftp://ftp.gentoo.mesh-solutions.com/...tar.bz2.md5sum
=> `portage-20060525.tar.bz2.md5sum'
Resolving www-proxy.physi.uni-heidelberg.de... 129.206.32.243
Caching www-proxy.physi.uni-heidelberg.de => 129.206.32.243
Connecting to
www-proxy.physi.uni-heidelberg.de|129.206.32.243|:3128...
connected.
Created socket 3.
Releasing 0x0808a348 (new refcount 1).
Logging in as anonymous ...

Error in server response, closing control connection.
Closed fd 3
Retrying.
[ and so on...]

The file exists, I downloaded it with firefox, and I tried also some
files with http protocol, to exclude it was a problem with ftp.

Can anybody help?

Thanks, Leodp

 
Reply With Quote
 
 
 
 
leodp
Guest
Posts: n/a

 
      05-29-2006, 02:08 PM
Ok, I found a way out, althought I don't understand it.

I had:
http_proxy=http://www-proxy.blah-blah.de:3128
ftp_proxy=ftp://www-proxy.blah-blah.de:3128
wget works with http but not with ftp.

If I set:
http_proxy=http://www-proxy.blah-blah.de:3128
ftp_proxy=http://www-proxy.blah-blah.de:3128
I have wget working with ftp too.

If anybody can tell me what's that, I'll thank her/him.

Ciao, Leodp

 
Reply With Quote
 
Lothar Roth
Guest
Posts: n/a

 
      05-30-2006, 10:55 AM
leodp wrote:
> Ok, I found a way out, althought I don't understand it.
>
> I had:
> http_proxy=http://www-proxy.blah-blah.de:3128
> ftp_proxy=ftp://www-proxy.blah-blah.de:3128
> wget works with http but not with ftp.
>
> If I set:
> http_proxy=http://www-proxy.blah-blah.de:3128
> ftp_proxy=http://www-proxy.blah-blah.de:3128
> I have wget working with ftp too.
>
> If anybody can tell me what's that, I'll thank her/him.


The proxy ist "tunneling" your requests/downloads between your PC and the proxy
inside http.

In other words the proxy "speaks" internal http to your PC and uses the
requested protocol http/https/ftp for the calls towards the rest of the world.

>
> Ciao, Leodp
>


Lothar
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Proxy Server email question Phil Windows Networking 1 10-25-2007 12:51 PM
reverse proxy question merrittr Linux Networking 0 10-17-2007 08:20 PM
Newbie question on HTTP proxy. Seeker Linux Networking 0 06-16-2007 08:24 AM
ipv6 proxy question ram Linux Networking 0 03-25-2005 01:31 AM
proxy server question Jeff Linux Networking 1 11-25-2004 08:13 AM



1 2 3 4 5 6 7 8 9 10 11