LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 10-25-2004, 02:26 PM   #1
jiawj
Member
 
Registered: Jul 2004
Location: Beijing, China
Distribution: Slackware,Redhat
Posts: 121

Rep: Reputation: 15
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.
 
Old 10-26-2004, 01:59 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
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.
 
Old 10-28-2004, 03:32 PM   #3
jiawj
Member
 
Registered: Jul 2004
Location: Beijing, China
Distribution: Slackware,Redhat
Posts: 121

Original Poster
Rep: Reputation: 15
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 ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
download/save a site- wget kpachopoulos Linux - Software 1 07-26-2005 12:22 PM
wget & ftp proxy authentication dunric Linux - Networking 0 10-04-2004 12:16 PM
how can i use a ftp program to download a site? Laptop2250 General 2 07-04-2004 05:30 PM
wget download all files of certain type GT_Onizuka Linux - Software 1 05-10-2004 08:33 PM
is there any linux command to download files from any ftp site remotely midnitc Linux - General 3 10-31-2003 08:05 AM


All times are GMT -5. The time now is 09:56 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration