expose CurlRequest::setOpt and setHeaders methods
Merge branch 'master' into assets-stable