does anybody can show me an example with CURLOPT_HEADER in curl? i don't know how input paramter in CURLOPT_HEADER for use. it seems it must be array but how? my script didn't work
Curl - CURLOPT_HEADER
The value is a boolean. From the manual "TRUE to include the header in the output." You're looking for CURLOPT_HTTPHEADER to set the request headers.
Heres a perfect tutorial example of what it does. Better than any manual.
CURL XML Tutorial