cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: extra test case -- proxy-ntlm POST crash

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 18 May 2004 08:56:17 +0200 (CEST)

On Mon, 17 May 2004, David Byron wrote:

> I figured it would be a good test case to have around. Maybe someone can
> get enough useful info from what's here to make one, or confirm that I've
> got it right. Here's the output from runtests.pl:
>
> $ ./runtests.pl 170

... I enjoy adding more test cases to the mix!

> test 170...[HTTP POST with --proxy-ntlm and no SSL]
> Signal 11
> protocol OKcurl returned 139, 56 was expected
> error FAILED
>
> - abort tests

And here are the results from the swedish jury (using CVS HEAD):

$ ./runtests.pl 170
********* System characteristics ********
* curl 7.12.0-CVS (i686-pc-linux-gnu)
* libcurl/7.12.0-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 libidn/0.4.3
* Host: labb.contactor.se
* System: Linux hostname 2.4.23 #2 SMP Sat Dec 13 13:16:11 CET 2003 i686 unknown
* Server SSL: ON
* libcurl SSL: ON
* libcurl debug: ON
* valgrind: ON
*****************************************
test 170...[HTTP POST with --proxy-ntlm and no SSL]
 protocol OKcurl returned 52, 56 was expected
 exit FAILED

 - abort tests
TESTDONE: 0 tests out of 1 reported OK: 0%
TESTFAIL: These test cases failed: 170
TESTDONE: 1 tests were considered.

The reason for the 52 (CURLE_GOT_NOTHING) is quite easy to understand once we
check the end of the log/sws.log file:

08:52:50 (13385) ** New client connected
08:52:50 (13385) Got request: HEAD http://127.0.0.1:8999/170 HTTP/1.1
08:52:50 (13385) Requested test number 170 part 0
08:52:50 (13385) Received NTLM type-1, sending back data 1001
08:52:50 (13385) Wrote request input to log/server.input
08:52:50 (13385) Send response number 170 part 1001
08:52:50 (13385) connection close instruction "swsclose" found in response
08:52:50 (13385) Response sent (0 bytes)!
08:52:50 (13385) instructed to close connection after server-reply
08:52:50 (13385) ** Closing client connection

BTW, the test case description says "no SSL". Does that mean that you want
this test run with a curl built without SSL?

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-05-18