I have a php script that returns just plain text without any html. Now I want to make a cURL request to that script and I get the following response:
$content = null; $ch = curl_init(); $rs = curl_exec($ch); if (CURLE_OK == curl_errno($ch)) { $content = substr($rs, curl_getinfo($ch, CURLINFO_HEADER_SIZE)); } curl_close($ch); echo $content;