You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to send a tweet with an asterisk in it, twurl responds with a "Could not authenticate you." message.
Expected behavior
When I run twurl -X POST -d "status=*tweet*" /1.1/statuses/update.json, it successfully tweets, or complains that the post body is malformed (though I couldn't find anything about asterisks in post bodies being bad...).
Actual behavior
twurl responds with a "Could not authenticate you" message:
but maybe it's not escaping * properly and resulting in a signature mismatch. I had a workaround that can remediate this (will open a PR) but you can also use query parameters instead.
$ twurl -X POST '/1.1/statuses/update.json?status=*tweet*'
* set_form_data() calls URI.encode_www_form(), and URI.encode_www_form() calls encode_www_form_component()
smaeda-ks
changed the title
"Could not authenticate you." when status has an asterisk in it
set_form_data() does not escape "*" (asterisk) in POST body data
Nov 28, 2019
When trying to send a tweet with an asterisk in it, twurl responds with a "Could not authenticate you." message.
Expected behavior
When I run
twurl -X POST -d "status=*tweet*" /1.1/statuses/update.json
, it successfully tweets, or complains that the post body is malformed (though I couldn't find anything about asterisks in post bodies being bad...).Actual behavior
twurl responds with a "Could not authenticate you" message:
As concisely as possible, describe the observed behavior.
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: