delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/13/08:42:44

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=2.8 required=5.0 tests=AWL,BAYES_05,BOTNET,RDNS_NONE,SPF_NEUTRAL
X-Spam-Check-By: sourceware.org
Date: Tue, 13 Oct 2009 20:42:26 +0800
From: hongyi DOT zhao AT gmail DOT com
Message-ID: <1631589547.20091013204226@gmail.com>
To: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: Want to use tor with wget.
In-Reply-To: <4AD413B2.1070903@gmail.com>
References: <3j28d51fso528qi14rpfqcga8r9oqckji8 AT 4ax DOT com> <4AD413B2 DOT 1070903 AT gmail DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Tuesday, October 13, 2009 at 13:44, dave DOT korn DOT cygwin AT googlemail DOT com wrot=
e:
> Hongyi Zhao wrote:
>> Hi all,
>>=20
>> Tor (http://www.torproject.org/) is a great free software.=20=20
>>=20
>> When I installed Tor on my winxp system, then I have a local socks
>> proxy server: 127.0.0.1:9050
>>=20
>> Now, I want to use wget through this SOCKS proxy provided by Tor under
>> cygwin.

>   I tried this once myself but as far as I can see Wget (at least the ver=
sion
> shipping with Cygwin) doesn't speak SOCKS.

>   It does OTOH speak http-proxy-talk, so if you're using http then you can
> always point wget at your local privoxy socket rather than directly at the
> SOCKS socket.

>   What protocol are you after using wget to fetch?

I want to use wget to grab the following web page:

http://www.cybersyndrome.net/pla5.html

In  my  case,  my  ISP  has  bocked this webpage, but I can use tor to
access  it.   In  order  to  grab this webpage for my further treatment, the
first  step is using a command-line downloading tool, such as wget, to grab
this  webpage to my local computer.  But the Tor itself works as a socks
proxy server.

OTOH,  I've  also  learned that curl support socks4/5 proxy, and I use
the following command under my cygwin console:

curl --socks5 127.0.0.1:9050 http://www.cybersyndrome.net/pla5.html

But I meet the following error:

-----------------------------
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>302 Found</TITLE>
</HEAD><BODY>
<H1>Found</H1>
The document has moved <A HREF=3D"http://www8.big.or.jp/~000/CyberSyndrome/=
error40
4.html">here</A>.<P>
</BODY></HTML>
-----------------------------

Nevertheless,  I  can  use  firefox  with  Tor  enabled to access this
webpage.

What's  the  reason  and  how  can  I  grab  this  webpage  just  by a
command-line downloading tool?

Thanks in advance.
--=20
Hongyi Zhao <hongyi DOT zhao AT gmail DOT com>=20
School of Physics and Electrical Information Science
Ningxia University
GnuPG DSA: 0xD108493
2009-10-13



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019