Re: http 411 error with cURL

From: Date: Sat, 09 Oct 2004 23:01:40 +0000
Subject: Re: http 411 error with cURL
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-199084@lists.php.net to get a copy of this message
Nick Wilson wrote:
* and then Nick Wilson declared....
* and then Marek Kilimajer declared....
* How to resolve this?
header('Content-Length: ' . strlen($data_you_are_posting));
Ok, im with you Marek but how/where do i put it in my curl function? Not with CURL_POSTFIELDS for sure.. i've been looking through the options in the manual and dont see anything obivious...?
Opps! CURLOPT_HTTPHEADER I go play with it now ;-)
Sorry, I got it mixed :) But you figured it out.

« previous php.general (#199084) next »