cURL / Mailing Lists / curl-users / Single Mail

curl-users

server works with curl 7.9.8, but not 7.10.4 and above

From: Rudy Koento <rudy_koento_at_yahoo.com>
Date: Tue, 27 May 2003 00:45:19 -0700 (PDT)

I've trouble connecting to a SMC wireless AP
(SMC2655W) using curl 7.10.4 (and .5 and cvs version).
 It works before with curl 7.9.8.

I run the command:
$ ./curl -d "passwd=default"
192.168.2.50/cgi-bin/login_post -v
* About to connect() to 192.168.2.50:80
* Connected to 192.168.2.50 (192.168.2.50) port 80
> POST /cgi-bin/login_post HTTP/1.1
User-Agent: curl/7.10.5 (i686-pc-linux-gnu)
libcurl/7.10.6-pre1 OpenSSL/0.9.6b zlib/1.1.4
Host: 192.168.2.50
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, */*
Content-Length: 14
Content-Type: application/x-www-form-urlencoded

< HTTP/1.0 200 OK
< Expires: 0
< Content-type: text/html
<script language="javascript">
function goBack(){
location.href='/passwd2.html';
}
function goAround(){
parent.location.href='/index2.html';
}
</script>
<html><body onLoad="goAround()">
<p>Loading...</p>
</body></html>
* Closing connection #0

Seems that there's no posting of "passwd=default".
But an ngrep shows:

T 192.168.2.2:3462 -> 192.168.2.50:80 [AP]
  POST /cgi-bin/login_post HTTP/1.1..User-Agent:
curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.6-pr
  e1 OpenSSL/0.9.6b zlib/1.1.4..Host:
192.168.2.50..Pragma: no-cache..Accept: image/gif,
image/x-x
  bitmap, image/jpeg, image/pjpeg,
*/*..Content-Length: 14..Content-Type:
application/x-www-form-u
  rlencoded....
                                           
#
T 192.168.2.50:80 -> 192.168.2.2:3462 [AP]
  HTTP/1.0 200 OK..
                                           
#
T 192.168.2.2:3462 -> 192.168.2.50:80 [AP]
  passwd=default
                                           
#
T 192.168.2.50:80 -> 192.168.2.2:3462 [AP]
  Expires: 0..Content-type: text/html..<script
language="javascript">.function goBack(){.location.
  href='/passwd2.html';.}.function
goAround(){.parent.location.href='/index2.html';.}.</script>.
 
##
T 192.168.2.50:80 -> 192.168.2.2:3462 [AP]
  <html><body
onLoad="goAround()">.<p>Loading...</p>.</body></html>.

From the log, seems that "passwd=default" is passed
after the "HTTP/1.0 200 OK"? This is not the case
when I use curl 7.9.8. The "passwd=..." is before
"HTTP/1.0 ...."

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
Received on 2003-05-27