for beinners, please check this example on how to use curl library.
to include headers in response, setĀ CURLOPT_HEADER to 1 in curl options. ie,
curl_setopt_array($ch, array(
...
CURLOPT_HEADER => 1,
...
);
to include headers o… more »
using cURL functions:$c = curl_init();curl_setopt_array($c, $opts); $data = curl_exec($c); $info = curl_getinfo($c);$error = curl_error($c);curl_close($c);line 2: see next section on $optline 3: data will be returned if CURLOPT_RET… more »
notes and references on web development and various things.
disclaimers
this site does not guarantee accuracy of information provided. codes may not be tested, are provided as is and are free to to use. use at your own risk. limited or no support will be provided.
under no circumstances shall this site be responsible or liable for any damages or consequences as a result of direct or indirect usage of any information from this website.