PECL OAuth and multipart
When trying to call the twitter media upload resource using PECL OAuth, I noticed the API call was failing. I later found out that the reason was because the wrong content type was sent. The header contained Content-Type: application/x-www-form-urlencoded
instead of the requiredContent-Type: multipart/formdata
…