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 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 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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: ----------------------------- 302 Found

Found

The document has moved here.

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