Added curlSetOpt() method to API for setting curl options