Tag: curl

Setting user agent in curl using php

PHP curl library gives you an option to change the user agent. All you need to do is to add the following line of code to the other set of curl options:

PHP curl ssl - cant connect to a https site

Recently, I was writing a PHP script for grabbing data from VeriSign through their API, but I was getting '0' as response. The problem was that curl SSL version and server's SSL version was different, so I needed to set it manually.