cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: cURL fails to POST to NTLM protected IIS6 server when using ANY authentication with post size less t

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 29 Jul 2007 00:25:41 +0200 (CEST)

On Fri, 27 Jul 2007, Greg Morse wrote:

> It seems due to the fixes in select.c and transfer.c that Windows may now
> have the same problem in current builds because of the new wait_ms function
> that handles EINVAL (it seems Windows relied on a bug to work properly in
> this case before). In non-Windows, poll/select will perform a sleep when no
> valid descriptors are passed and not throw an error. This allows it to loop
> infinitely.

But how come it ends up in such a situation? It seems like it should bail out
before that, shouldn't it?

> I am looking to help resolve this problem so I would like to hear from some
> of the experts on this before I suggest some sort of fix - I am hoping
> others may have a different perspective to offer on this issue.

I wrote the NTLM code, and I've been given access to servers at times that
speak NTLM and we have several test cases that verifies NTLM (as I know it).
But that's the end of the story for me, I've never personally used NTLM in a
"real life" (lib)curl application.

> Nonetheless it seems this is a long standing bug in the library that should
> be easy to reproduce based on the description provided if you have an IIS6
> server available.

I don't have any NTLM-speaking server available. Would you by any chance have
a fix to suggest?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-07-29