delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/14/11:04:30

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com
From: Hongyi Zhao <hongyi DOT zhao AT gmail DOT 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 AT 4ax DOT com> <4AD413B2 DOT 1070903 AT gmail DOT com> <1631589547 DOT 20091013204226 AT gmail DOT com> <4AD4DE7C DOT 7030606 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-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 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

- Raw text -


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