LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   I want to download ftp-site files via wget and socks5 proxy server. (http://www.linuxquestions.org/questions/red-hat-31/i-want-to-download-ftp-site-files-via-wget-and-socks5-proxy-server-247167/)

jiawj 10-25-2004 02:26 PM

I want to download ftp-site files via wget and socks5 proxy server.
 
I want to download ftp-site files via wget and socks5 proxy server.

my /etc/wgetrc is
Quote:

ftp_proxy = 162.105.156.31:1080
use_proxy = on

my /etc/libsocks5.conf is
Quote:

socks5 - - - - 162.105.156.31
but .... when I run "runsocks wget ftp://166.111.172.55/incoming/as3/g...s1007000000.zip"

Quote:

--16:36:04-- ftp://166.111.172.55/incoming/as3/g...s1007000000.zip
=> `gravity_s1007000000.zip'
Connecting to 162.105.156.31:1080... connected.
Proxy request sent, awaiting response...
Read error (Connection reset by peer) in headers.
Retrying.
.......

and then , I try to run runsocks ftp 166.111.172.55 , ftp-connection worked properly.

How can I fix the error with runsocks wget, pls help me
very thx and best wish.

trickykid 10-26-2004 01:59 PM

Have you tried passing the proxy username and password options if any defined?

wget --proxy-user=user --proxy-password=password <file to download>

Or does this proxy server support the "Range" header? I read that only proxy servers using http that support the "Range" header are supported by wget, no others currently are that I am aware of.

jiawj 10-28-2004 03:32 PM

thx very much
 
I will give a try.

but , I hava a new question .....

I ran the command:
wget -vS --user-agent=jiawj -m -L http://www.chinalinuxpub.com/doc/
or
wget -vS --user-agent=jiawj -r -np http://www.chinalinuxpub.com/doc/

--04:16:47-- http://www.chinalinuxpub.com/doc/
=> `www.chinalinuxpub.com/doc/index.html'
Resolving www.chinalinuxpub.com... done.
Connecting to www.chinalinuxpub.com[211.141.149.14]:80... connected.
HTTP request sent, awaiting response...
1 HTTP/1.1 403 Forbidden
2 Date: Thu, 28 Oct 2004 20:16:30 GMT
3 Server: Apache/2.0.50 (Fedora)
4 Content-Length: 295
5 Connection: close
6 Content-Type: text/html; charset=iso-8859-1
04:16:48 ERROR 403: Forbidden.

It seems can not readable in directory /doc/

and how can I resolve it ?:Pengy:


All times are GMT -5. The time now is 11:44 AM.