cURL / Mailing Lists / curl-library / Single Mail


Re: NTLM proxy nightmare - POST problem?

From: Jonathan Arnold <>
Date: Wed, 07 Mar 2007 15:19:35 -0500

Dan Fandrich wrote:
> On Wed, Mar 07, 2007 at 02:26:44PM -0500, Jonathan Arnold wrote:
>> I'm having a bit of a nightmare, trying to get libcurl to work with
>> NTLM (don't yell at me - it's a customer who uses it). As of right
>> now, I have the latest source from the CVS, running on Windows, both
>> using curllib built using SSPI and NTLM in my app, and curl.exe built
>> using Cygwin. Both of these apps fail when I use proxy-anyauth for
>> an NTLM proxy, and try to do a POST. Curl gets into some kind of loop
>> and just hangs. GET works okay in curl.exe. And, in fact, if I add the
>> -G option, curl.exe works too.
>> Here's my curl command line:
>> curl --proxy-anyauth -x -u
>> "httpusername:httppassword" -d REMURL=1
> Have you tried --proxy-user to set the proxy user:password? I'm not sure
> they can be set with -x, and it looks like curl is acting as though there
> is no proxy authentication credentials necessary.

That didn't seem to help. It seems to work okay if I just do a GET before
doing a post. Ie, it seems the post logic doesn't do the retries correctly? I'm
flailing around here, I most freely admit! I am working on addng a "GET" or
"HEADER" before every post as a work around in my program, and that seems to
be helping.

Jonathan Arnold           Software Engineer
inSORS Integrated Communications, Inc Office/fax: 781.391.2818
Received on 2007-03-07