Authorization: OAuth realm="yahooapis.com",oauth_version="1.0",oauth_nonce="1464095086",oauth_timestamp="1315146566",oauth_consumer_key="XXXXX",oauth_token="XXXXX",oauth_signature_method="HMAC-SHA1",oauth_signature="XXXXX"
Content-Type: application/xml
Content-Length: 303
Expect: 100-continue
I'm using PUT method on cURL request and here is my cURL opts
$file = fopen($file_name, 'r');
$curl_opts = array(CURLOPT_URL => $url,
CURLOPT_PORT => $port,
CURLOPT_PUT => true,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_INFILE => $file,
CURLOPT_INFILESIZE => filesize($file_name),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => $headers);
Help much appreciated.