X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=0.6 required=5.0 	tests=AWL,BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Hongyi Zhao <hongyi.zhao@gmail.com>
Subject:  Re: [OT] Re: Want to use tor with wget.
Date:  Wed, 14 Oct 2009 23:03:28 +0800
Lines: 29
Message-ID:  <bopbd5pnhi4tms6taiuui9h3ehp0u8klad@4ax.com>
References:  <3j28d51fso528qi14rpfqcga8r9oqckji8@4ax.com> <4AD413B2.1070903@gmail.com> <1631589547.20091013204226@gmail.com> <4AD4DE7C.7030606@gmail.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=us-ascii
Content-Transfer-Encoding:  7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Tue, 13 Oct 2009 21:09:32 +0100, Dave Korn wrote:

>Well, you can use wget!  Or you can tell your curl to pretend it is wget!

I also found that the following command will do the trick:
 
$ curl -x localhost:8118 'http://www.cybersyndrome.net/pla5.html' -A
'User-Agent: Wget/1.11.4'

But the following command will fail:

$ curl -x localhost:8118 'http://www.cybersyndrome.net/pla5.html'
<!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="http://www8.big.or.jp/~000/CyberSyndrome/error40
4.html">here</A>.<P>
</BODY></HTML>

Very strange, the above result is just the sasem as that returned by
the switch --socks5.  Why does this happen?  Any hints will be highly
appreciated.

Best regards.  
-- 
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.


--
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

