LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-10-2005, 09:32 AM   #1
Cornholio
Member
 
Registered: Dec 2004
Location: Alemania
Distribution: Slackware 10.0
Posts: 115

Rep: Reputation: 15
wget with proxy?


Hi there!

I know how to use a proxy for surfing... because I set it up the browser.

But, how can I use a proxy in, let's say -wget-?

Does wget offer some not mentioned (or not seen by me) function for using a proxy? I just saw that I could turn proxy on and off... but not, how I could tell which proxy I'd like to use...

Or is there a possibility to add any proxy into an URL? Like http://proxy.com:8000(something)www.google.com ???

Can someone help me with that? :-)

Thanks a lot!
 
Old 01-10-2005, 09:40 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Code:
man wget
will tell you exactly how to use wget, including how to set up a proxy.

I can't just see anything in the RFCs about putting a proxy into a URL or URI (www.rfc-editor.org); this may be possible but I've not seen it myself.
 
Old 01-10-2005, 09:40 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Taka a look at this post
 
Old 01-10-2005, 10:51 AM   #4
Cornholio
Member
 
Registered: Dec 2004
Location: Alemania
Distribution: Slackware 10.0
Posts: 115

Original Poster
Rep: Reputation: 15
Hm...

I just used wget --help ... I found nothing usefull there.. will check man wget...

Thanks guys!
 
Old 01-11-2005, 02:14 AM   #5
Cornholio
Member
 
Registered: Dec 2004
Location: Alemania
Distribution: Slackware 10.0
Posts: 115

Original Poster
Rep: Reputation: 15
Hi again!

Do you know what is very funny!

My manpage of wget seems to be broken.... here is the part about proxies ... tell me, if you also think there is something missing :-)

............from a web site due to the actions of one.

-Y on/off
--proxy=on/off
Turn proxy support on or off. The proxy is on by default if the appropriate environment variable is
defined.

For more information about the use of proxies with Wget,

-Q quota
--quota=quota
Specify download quota for automatic retrievals. The value ....................


So ... nice, eh? Could someone please post me the missing part....?

Greetings
 
Old 01-11-2005, 02:55 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
From the link I gave you:
Quote:
Take a look at your .wgetrc or /etc/wgetrc and define there your proxy server. Then use wget --proxy-user=.. --proxy-passwd=..
 
Old 01-11-2005, 03:16 AM   #7
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
http://www.cs.huji.ac.il/~bioskill/MAN/wget.html
 
Old 01-11-2005, 03:18 AM   #8
bbk
Member
 
Registered: Jan 2005
Location: Budapest/Hungary
Distribution: knoppix-hdd/debian
Posts: 56

Rep: Reputation: 15
...or just simply use this line, if you do not want to know how to format wgetrc, do not want to add to your login scripts the export line, etc...

export http_proxy=http://your.proxy.server:port && wget -c http://whatever

Last edited by bbk; 01-11-2005 at 03:32 AM.
 
Old 01-13-2005, 02:12 AM   #9
Cornholio
Member
 
Registered: Dec 2004
Location: Alemania
Distribution: Slackware 10.0
Posts: 115

Original Poster
Rep: Reputation: 15
Ok, thanks guys!

I finally got want I needed :-) Thanks a lot for all your support!

Greetings
 
  


Reply



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
wget through proxy TheRealDeal Linux - Networking 5 09-14-2005 06:07 AM
I want to download ftp-site files via wget and socks5 proxy server. jiawj Red Hat 2 10-28-2004 03:32 PM
wget & ftp proxy authentication dunric Linux - Networking 0 10-04-2004 12:16 PM
wget proxy problem henryluo Linux - Newbie 1 07-05-2004 06:31 PM
wget won't authenticate with a MPS 2.0 Proxy graywind Linux - Networking 0 12-16-2003 01:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:15 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration