Tag Archives: ajax

HTTP Requests Using Curl and Decoding JSON Responses in PHP

You can do http requests using the Curl library and decode the JSON result with json_decode() function. PHP 5.2 and above comes with the JSON library functions. The following example will send a request using curl to a video library api and extract links to the video thumbnail images. The result will be a list [...]