twitter / twurl

OAuth-enabled curl for the Twitter API
https://developer.twitter.com
MIT License
1.8k stars 301 forks source link

twurl does not post status that contains an ampersand #33

Closed Yenwod closed 10 years ago

Yenwod commented 11 years ago

twurl -d 'status=this is a test & this is the second part' /1.1/statuses/update.json

twurl posts only the string up to (but not including) the ampersand:

this is a test

sanmai commented 10 years ago

I second this.

If it could accept URL-encoded data and pass it verbatim, it'll resolve the issue: https://github.com/twitter/twurl/blob/master/lib/twurl/cli.rb#L230