Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@queso
Created April 16, 2015 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save queso/fe91a7ad35d2784235cb to your computer and use it in GitHub Desktop.
Save queso/fe91a7ad35d2784235cb to your computer and use it in GitHub Desktop.
Example tweet
Hey guys, check out this escaped url: http://crater.io/out?url=https%3A%2F%2Fitunes.apple.com%2Fus%2Fpodcast%2Fscaling-deploy-meteor-meteor%2Fid984131621%3Fi%3D339627585%26mt%3D2
@queso
Copy link
Author

queso commented Apr 16, 2015

So what happens somewhere is that the URL after out?url= seems to be unescaped, I can't tell if it is Buffer or Bit.ly doing that.

Basically http://crater.io/out?url=https%3A%2F%2Fitunes.apple.com%2Fus%2Fpodcast%2Fscaling-deploy-meteor-meteor%2Fid984131621%3Fi%3D339627585%26mt%3D2 becomes http://crater.io/out?url=https://itunes.apple.com/us/podcast/scaling-deploy-meteor-meteor/id984131621%3Fi%3D339627585%26mt%3D2

@jehiah
Copy link

jehiah commented Apr 16, 2015

@queso Bitly does a process to normalize between different representations of the same url. Those two urls you listed should be semantically equivalent. Can you share where you are running into issues with them not being treated equally?

Note that escape sequences in the value of url=.... like %3F and %3D which would change the meaning of the URL if escaped are not unescaped.

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