cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: NTLM proxy nightmare - POST problem?

From: Jonathan Arnold <jarnold_at_insors.com>
Date: Thu, 15 Mar 2007 10:02:04 -0400

Daniel Stenberg wrote:
> On Fri, 9 Mar 2007, Jonathan Arnold wrote:
>
>> Okay, I added the call to CURLOPT_POSTFIELDSIZE and backed out my
>> changes. There is still the problem where it thinks there is something
>> to send, but there is no socket opened to send it. But it does point
>> out a flaw in my little hack, because expectsend now equals 6, so it
>> would fall through into the bad if conditional anyway. This may also
>> show some kind of bug where the postfieldsize isn't getting set early
>> enough if it isn't set by the user?
>
> I believe postfieldsize is only set internally if you set the
> CURLOPT_POSTFIELDS option, and then it sets it to strlen() of the given
> string if you haven't set it yourself.

Yes, I am doing a CURLOPT_POSTFIELDS before calling perform. Not sure why it
isn't getting set, or when it is supposed to get set.

> Any chance you can covert your troubles into a taste case for curl's
> test suite?

I'll see if I can boil it down.

-- 
Jonathan Arnold           Software Engineer
inSORS Integrated Communications, Inc
jarnold_at_insors.com Office/fax: 781.391.2818
Received on 2007-03-15