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

Deal with URL length limits #2

Open
lucaspiller opened this issue Apr 12, 2012 · 7 comments
Open

Deal with URL length limits #2

lucaspiller opened this issue Apr 12, 2012 · 7 comments

Comments

@lucaspiller
Copy link
Owner

No description provided.

@mrshu
Copy link

mrshu commented May 13, 2013

How about gzipping the text, base64 encoding that and then on the other side doing precisely the opposite?

@lucaspiller
Copy link
Owner Author

That's exactly what happens at the moment, but we use raw deflate rather than the gzip file format.

@naugtur
Copy link

naugtur commented May 13, 2013

Outside Internet Explorer the limit for URL length is always above 100k (tested for a project 2 years ago and re-tested recently)

@nathgit
Copy link

nathgit commented May 23, 2020

how hard would it be to just incorporate a url shortener? There's a free shortener called tny.im. You can simply prefix the url you want to shorten with tny.im/ & hitting enter. Going to http://tny.im/https://github.com/lucaspiller/shortly/issues/2 would create a short url for this url. You could easily create a bookmarklet to do it too.

@naugtur
Copy link

naugtur commented May 23, 2020

Wouldn't that literally defeat the purpose?

@nathgit
Copy link

nathgit commented May 24, 2020

I meant as an option as I way to share a long snippet of text. There are plenty of url shorteners, but not many that let you just share a long snippet of text. This is perfect for saving snippets, but the length of the url does make it more difficult to share.

@nathgit
Copy link

nathgit commented May 24, 2020

You can easily shorten a url with tny.im by saving javascript:void(window.open('https://tny.im/index.php?format=simple&action=shorturl&url='+escape(location.href))) as a bookmarklet.

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

4 participants