There are many questions and guides on how to get cURL to DO file uploads, but what I'm asking today, is how to NOT get it to do that.
According to the curl options docs on php.net, curl "knows" to attempt a file upload by when a param starts with "@" then the local file path
This is all well and fine, but what do you do if you need to POST something with the literal text that starts with @ and NOT want to do a upload?
I'm sending the post data like this
curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $param_array);
and my params look like this (truncated for simplicity)
Array ( [action] => "edit" [title] => "my_pagename" [text] => "@disabled" )
(before anyone asks, yes, this is for a mediawiki api call, but its not relevant)
right now, the curl_exec is just returning false
(failing to find the file named "disabled" to post i think)
my code path for the rest of the params, and the actual POST is 100% tested fine, and has been working otherwise for over a year, so i'm 100% sure its this upload "bug"