Setup: iOS application, using MGTwitterEngine, connecting to REST API v1.1 statuses/update.json endpoints.
When trying to publish a message that contains single quotes or parenthesis, the server fails to accept the request. The same message is uploaded without hassle using REST API v1.0.
This is the request (body contents in Spanish, sorry):
<OAMutableURLRequest https://api.twitter.com/1.1/statuses/update.json>, method = POST, headers = {
Authorization = “OAuth realm=”", oauth_consumer_key=“xQ2ZbuS7u0Vh8DHmBnxrw”, oauth_token=“239470531-h2P91G6ey9yxkf3jhnsjWkBsVXsWuQMdRRQlmBWm”, oauth_signature_method=“HMAC-SHA1”, oauth_signature=“RtsgsOFxYBENlMyNnDsTCB0eS%2F0%3D”, oauth_timestamp=“1353687958”, oauth_nonce=“5FBF39FB-F8C6-47EE-B903-7CB2A9BDD1B3”, oauth_version=“1.0”, oauth_verifier=“zW4bwfVZrot6FnXaKge6tFMu7Y1VnMUNlZ1P373o4"”;
[some x-twitter-headers omitted on purpose]
}, body = status=Tiene%20(Viernes%20Negro)%20inicio%20anticipado%0Ahttp%3A%2F%2Fwww.elnorte.com%2Finternacional%2Farticulo%2F718%2F1434974%2F%3Fcompartir%3D5dbec681526f1c15b436be512d3cf5ba&source=gruporeforma
Delegate didReceiveResponse comes with error:
Error Domain=HTTP Code=401 “The operation couldn’t be completed. (HTTP error 401.)”
I appreciate any insights on what I’m doing wrong.