Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

url shorten function fails on Android #11

Open
johnrgoslin opened this issue Jun 7, 2011 · 2 comments
Open

url shorten function fails on Android #11

johnrgoslin opened this issue Jun 7, 2011 · 2 comments

Comments

@johnrgoslin
Copy link

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
Copy link

Samor commented Jul 5, 2011

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

@markruys
Copy link

I guess the problem was a missing Ti.Network.encodeURIComponent() over the url. In the pull request #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants