I am attempting a go at updating quantities using the SubmitFeed action. Does anyone have experience with this? The error I am receiving is: 'Either Action or Operation query parameter must be present', but I do have 'Action=SubmitFeed' in the query string.
I have written four other functions (RequestReport, GetReportRequestList, GetReport, & GetFeedSubmissionList) that work perfectly. I imagine I am missing some cURL configuration options in order to post a file.
cURL options:
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HTTPHEADER => array(
'Content-Type: application/x-www-form-urlencoded',
'Content-MD5: '. $md5,
'Transfer-Encoding: chunked',
)),
curl_setopt($ch, CURLINFO_HEADER_OUT => true);
curl_setopt($ch, CURLOPT_UPLOAD => true);
curl_setopt($ch, CURLOPT_PROTOCOLS => CURLPROTO_HTTPS);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_VERBOSE, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_PORT , 443);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, implode('&', $url_parts));
Can anyone assist? Thank you.