cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Problem with Header "Expect:" and lighttpd and PHP

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 24 Dec 2005 23:46:08 +0100 (CET)

On Sat, 24 Dec 2005, Pierre wrote:

> I've read the archive then used -H "Expect:" and this fixed all.
>
> curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "Expect:");

-H is not at all like CURLOPT_CUSTOMREQUEST, -H sets the CURLOPT_HTTPHEADER
option.

CURLOPT_CUSTOMREQUEST's command line version is called -X/--request.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-12-24