i use curl to get the data (http request) from a website through php. and some of the information of the data is stored inside the header information. i can simply fetch the data using curl_exec, but if i try to fetch the header information using curl_getinfo, the information is missing. it supposed to be worked just like ajax. can somebody help me with this?
Share
curl_getinfodoesn’t give you the headers, it just gives meta information about the last request. TheCURLOPT_HEADERoptions makes sure the headers are included in the output: