Hi,
I am using the Twitter API for OAuth.
I have gotten the Request Token operation to work without any issues using GET.
However, when I do the exact same thing using POST, it gives me the error 'Failed to validate oauth signature'.
Here are the various curl options I am using:
curl_setopt($ch, CURLOPT_URL, ''.$url_post_str.'');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_vars_arr);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
Can you please assist?
Thanks.