cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: -x option again

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 3 May 2002 10:03:28 +0200 (MET DST)

On Fri, 3 May 2002, Sebastien WILLEMIJNS wrote:

> i try again the -x option and it doesn't works but i've find in
> "newcurl.exe" who is the 7-9-6 windows version the socket was not closed
> properly ;)

I don't understand what you're saying. "the socket was not closed properly" ?
Where? When? How did you figure this out?

> in my last message about this subject, i have seen headers so i think (i
> was silly) the problem was resolved but it is false :X

The problem is not that binary as you seem to think. As I've already told
you, I run proxy tests in the test suite, I've run curl on Linux through a
squid proxy and just to make sure, I actually sucked down a windows version
to a windows machine just now and ran it through a squid proxy to get a web
page.

Guess what? It worked...

> C:\WINDOWS\test\curl>newcurl -x 210.59.70.12 www.willemijns.com -v
> * About to connect() to 210.59.70.12:1080
> * Connected to 210.59.70.12 (210.59.70.12) port 1080
> > GET http://www.willemijns.com HTTP/1.1
> User-Agent: curl/7.9.6 (win32) libcurl 7.9.6
> Host: www.willemijns.com
> Pragma: no-cache
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
>
> * Connection #0 left intact
> curl: (52) Empty reply from server
> * Closing connection #0

Does it tell you the same if you specify the port number with ":1080" ?

I think we will need either to do some network analyzing here, or find
someone with a windows debugger that can repeat this problem! :-/

Wanna see the same operation done from my end, using the 7.9.6 for win32:

C:\TEMP\curl>curl -x proxy:3128 www.willemijns.com -v
* About to connect() to proxy:3128
* Connected to proxy (10.10.10.2) port 3128
> GET http://www.willemijns.com HTTP/1.1
User-Agent: curl/7.9.6 (win32) libcurl 7.9.6
Host: www.willemijns.com
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>302 Found</TITLE>
</HEAD><BODY>
<H1>Found</H1>
The document has moved here.<P>
</BODY></HTML>
* Closing connection #0

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth_at_sourceforge.net
Received on 2002-05-03