I am trying to work with the stumbleupon API to get information about the items on my site.
Documentation: http://www.stumbleupon.com/help/badge-api-documentation/
Now it works perfectly except with some URL’s…
But http://lolbin.net/i/fp16jU82/that's-what-beer-is-for.htm for example has a ‘ in the URL, which is a problem for the Stumbleupon API.
I have tried various things, but I keep getting error pages:
http://www.stumbleupon.com/services/1.01/badge.getinfo?url=http://lolbin.net/i/fp16jU82/that's-what-beer-is-for.html
http://www.stumbleupon.com/services/1.01/badge.getinfo?url=http://lolbin.net/i/fp16jU82/that\'s-what-beer-is-for.html
http://www.stumbleupon.com/services/1.01/badge.getinfo?url=http://lolbin.net/i/fp16jU82/that%27s-what-beer-is-for.html
http://www.stumbleupon.com/services/1.01/badge.getinfo?url=http://lolbin.net/i/fp16jU82/that%252527s-what-beer-is-for.html
The item is in the stumbleupon database already with many views: http://www.stumbleupon.com/url/lolbin.net/i/fp16jU82/that%252527s-what-beer-is-for.html
My question is, how can I query this particular item via the API so I get a valid return?
It works with %2527
Returns:
It is, as Godius pointed out, a double urlencoding. ‘ => %27 => %2527