> Bolee Menee wrote:
> > Hello,
> >  
> > There is information about Socks Proxy support on official website:
> >  
> >> Supports HTTP and SOCKS proxies
> >  
> > But in reality there is no support and there is no much instructions how
> > to get it worked.
> 
> Hm, yeah. I copied the features lists on the main GNU site and on the
> Wgiki, from a list that IIRC was present on the dotsrc.org website.
> 
> But this particular feature-claim is very misleading, isn't it?
> 
> My understanding, after a brief attempt to research this claim just now,
> is that the SOCKS-ified Wget is someone else's (mild) adaptation from
> the original Wget page. The distribution tarball for Wget 1.10.2
> included some HTML files describing where to get a "socksified wget"
> (but the link currently resolves to an unmodified wget-1.10.2 tarball),
> and how to set up a somewhat involved and not generally-useful scenario
> where someone uses an HTML form to request that a CGI script (not
> included) download a file via Wget at a certain time. I've removed these
> files (which used to reside in util/) from the Wget 1.11 tarball, as
> they seem to be outdated, incomplete, and (for the link to a
> "socksified" Wget) incorrect.

I've not checked a more recent release but wget-1.10.2 has references to 
both a; '--with-sox' and a '--with-socks' configure option but neither do 
anything AFAICT.

> After downloading the source code for socks-server and reading a file

I think only the socks client S/W is needed to built a sockified wget.

> called How-to-SOCKSify, it appears that socksification consists of
> adding an initialization-function call to the top of main(), Passing -D
> flags to gcc to #define connect=Rconnect, etc, and linking with
> libsocks. If that's what the socksified Wget is/was, then it would
> appear that the socksified Wget can _only_ communicate with a SOCKS
> server, and can't make normal connections anymore.
> 
> Hrvoje, Mauro, is this accurate?

This sounds like the old Socks 4 sockification procedure.  For socks 5, 
somthing like the following should work, where 
$PWD/../socks5-1.0r11-3/socks5-v1.0r11/installdir is the root of a 
(temporary) installation of the socks client library S/W.

./configure CFLAGS="-O2 -Wall -Wno-implicit -DSOCKS \
        -I$PWD/../socks5-1.0r11-3/socks5-v1.0r11/installdir/include"    \
        LDFLAGS="-L$PWD/../socks5-1.0r11-3/socks5-v1.0r11/installdir/lib" \
        LIBS="-lsocks5"
make

I tried this a while back with wget-1-10.2 but it just dies with segfault.

Regards
Tom.

-- 
Tom Crane, Dept. Physics, Royal Holloway, University of London, Egham Hill,
Egham, Surrey, TW20 0EX, England. 
Email:  T.Crane at rhul dot ac dot uk
Fax:    +44 (0) 1784 472794

Reply via email to