jpurcell / birdhouse

BirdHouse is a Titanium Developer plugin for authenticating and sending API calls to Twitter.
64 stars 17 forks source link

url shorten function fails on Android #11

Open jgoslin opened 13 years ago

jgoslin commented 13 years ago

Unfortunately the URL shorten function fails on Android but works perfectly on IOS. The only thing it returns is "false." I added a Ti.API.info on the ResponseText which basically says you need to submit a valid URL <a href= >

It is my opinion that something is mangling the url that is being passed to twe.ly on android. Most likely the issue is in HTTPClient object from Titanium.

Thanks,

John

Samor commented 13 years ago

make sure autoEncodeUrl is set to false for android (XHR.autoEncodeUrl = false;)

markruys commented 12 years ago

I guess the problem was a missing Ti.Network.encodeURIComponent() over the url. In the pull request https://github.com/jpurcell/birdhouse/pull/27, I fixed this bug and added other shortener API's like goog.le and bitly. As far as I now, twe.ly is down.