Archive

- Posts Tagged ‘CURL’

PHP: Get Headers using cURL

How to get headers using cURL in PHP? We can know the health of a web page without visiting a link. We can get the information about link status whether is returning response 200 or it is moved it somewhere else or it is dead. <?php /** * Script to… (Continue)

PHP + CURL: Get Returned Content Mime Type

Did you ever tried to get mime type of the returned content in CURL! I was writing a small application for something and thought to know the Content-Type (mime type) of the response data returned by CURL's exec(). Before thinking of anything else, I habitually started Goggling and found this… (Continue)