Re: Content-Length Question
Date: Mon, 17 Apr 2006 13:49:02 -0700
Thanks for your prompt reply!
Sorry for not including this information in the first place--I meant to! I'm
running libcurl 7.15.3 on Macintosh (Mac OS X, 10.4.6). I complied it myself
as a static library using CodeWarrior 9.3.
Perhaps I didn't properly set a flag/define somewhere? I have no idea where
to start looking...
Thanks for your help!
On 4/17/06 1:29 PM, "Daniel Stenberg" <daniel_at_haxx.se> wrote:
> On Mon, 17 Apr 2006, Jim Birkenseer wrote:
>> I have written the code below, and it looks like the Content-Length is being
>> sent out set to zero. I think the Content-Length should be 4. Why is it
>> being sent out with a zero length?
>> curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "test");
>> curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 4);
>> * About to connect() to xxx.yyy.com port 80
>> * Trying ##.##.##.##... * connected
>> * Connected to xxx.yyy.com (##.##.##.##) port 80
>>> POST /aaaa/bbbbb.php HTTP/1.0
>> Host: xxx.yyy.com
>> Accept: */*
>> Content-Length: 0
>> Content-Type: application/x-www-form-urlencoded
> I can only agree with you. It looks weird. What libcurl version on what
Received on 2006-04-17