Closed chrisburnor closed 7 years ago
Can you modify your script to also output twurl --version
to ensure that the same version is being used with each version of Ruby?
Should the user-agent of twurl calls be "twurl 0.9.3" rather than the oauth gem agent?
Updated script and output as per @ryangreenberg 's request.
I'm not sure what the User-Agent should be @jaakko-sf though it seems unchanged in the different verisons of Ruby.
Hit this bug today. Any plan to resolve it? For now, I'm stripping the asterisk character out of my automated tweets...
Ruby has ended support for 1.9.3 so I think the relevant question now is whether this problem exists under Ruby 2.0 and Ruby 2.1.
Closing for age / inability to repro - please open a new issue if this still occurs with 0.9.3 (and Ruby 2+)
I believe I've found a bug in twurl running under ruby 1.9.3 regarding content type encoding. Specifically, I've found that reqeusts with an asterisk ('*') in the HTTP body fail under 1.9.3 but succeed under 1.8.7. I'm using the following command to test:
Under 1.8.7, I get:
Under 1.9.3, I get:
Note that in 1.9.3, the status parameter in the HTTP body is not actually form-urlencoded even though that's the content-type, whereas, in 1.8.7, it is.