LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   [ask] using wget through SOCKS proxy (http://www.linuxquestions.org/questions/linux-software-2/%5Bask%5D-using-wget-through-socks-proxy-599000/)

arroquant 11-12-2007 07:19 AM

[ask] using wget through SOCKS proxy
 
Hi all,

im sorry if this question is already asked before, i've searched through this forum and i found no thread related to my question. :D

i read on wget's website that wget supports SOCKS proxy, but i found no entry explaining how to use wget with socks..

im using socks via ssh tunneling with this syntax
Code:

$ ssh me@some.host.com -D 8888
and then configuring my firefox to connect via localhost socks proxy, but i have no idea about configuring wget to download via socks like my browser..

anyone have any idea?

thanks in advance :)

colucix 11-12-2007 08:21 AM

Quote:

However, if you are behind a firewall that requires that you use a socks style gateway, you can get the socks library and build Wget with support for socks.
From the above excerpt from the wget manual, it looks like you have to recompile wget with socks support. This was made until wget-1.9 by specifying option --with-socks to ./configure. I don't know about recent versions 1.10.X, since this option has been removed.

arroquant 11-13-2007 02:16 AM

Quote:

Originally Posted by colucix (Post 2956132)
From the above excerpt from the wget manual, it looks like you have to recompile wget with socks support. This was made until wget-1.9 by specifying option --with-socks to ./configure. I don't know about recent versions 1.10.X, since this option has been removed.

i've already re-build my wget 1.9 with socks option before i started this this thread.. the thing is how to use wget with socks.. i've tried putting this line to ~/.wgetrc
Code:

http_proxy = 127.0.0.1:8888
use_proxy = on

but it doesnt work..

hmm..

colucix 11-13-2007 03:35 AM

Sorry, I misunderstood the original question. What is the exact error message you get when trying to download a file? Maybe do the proxy require authentication? In this case you should activate the flags
Code:

proxy_user=
proxy_passwd=

or trying to use the syntax
Code:

http_proxy=http://user:password@127.0.0.1:8888

arroquant 11-13-2007 05:28 AM

Quote:

Originally Posted by colucix (Post 2957172)
Sorry, I misunderstood the original question. What is the exact error message you get when trying to download a file? Maybe do the proxy require authentication? In this case you should activate the flags
Code:

proxy_user=
proxy_passwd=

or trying to use the syntax
Code:

http_proxy=http://user:password@127.0.0.1:8888

the problem is i dont know how to use SOCKS proxy with wget after i re-compile it with socks support..

the syntax you posted is for http proxy and AFAIK socks proxy doesnt need any username & password..

any idea?

zatricky 09-30-2009 07:12 PM

Quote:

Originally Posted by arroquant (Post 2957273)
any idea?

Forgive me for opening up an old thread - I still believe some will find it relevant. ;)

Even though there was some clue of socks support, its a lot easier to use proxychains.


All times are GMT -5. The time now is 05:18 AM.