Re: http 411 error with cURL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nick Wilson wrote:
hi all,

Im getting an http 411 error when trying to post data with php's cURL
functions. The spec says


***The message for this error code is "Length Required."
The server refuses to accept the request without a defined Content-
Length.***

Im confused on 2 points:

* Is it the server i am posting *from* causing the error or is it the
  server im posting *to*?

B is correct


* How to resolve this?

header('Content-Length: ' . strlen($data_you_are_posting));


Much thx for any guidance here, this was not happening yesterday doing the same job.. weird!

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux