We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
我认为 URL 缩短服务的主要动机之一是具有消息长度限制的社交网络服务(例如 Twitter)。我预计您不太可能找到适合您特定需求的服务。您在问题中引用的文章非常有趣。 (尤其是关于 TinyURL 的大限制。)
我可能会依赖那句老话,“如果它没有坏……就不要修复它。”
I think one of the main motivations for url shortening services was social networking services (such as Twitter) with message length limits. I expect that you will not likely find such a services suiting your particular desires. The article you referenced in your question was quite interesting. (especially re: TinyURL's large limit.)
I might fall back on that old saying, "If it ain't broke... don't fix it."
浏览器对URL长度都有限制,据我所知IE大约是2083个字符,其他浏览器如Chrome也类似。在此处查看 StackOverflow 答案:
http://9to.one/gV0XOQ
我建议您创建以下之一自己做那些REST服务器,步骤:
* 选择哈希算法
* 使用 Java 中的 Jersey 或您喜欢的任何其他语言创建 REST 服务
* 使用RIAK数据库保存您的key/long_link
Browsers all have limit on the URL length, from what I know IE around 2083 chars, and other like Chrome are similar. Check out StackOverflow answers here:
http://9to.one/gV0XOQ
I would like to suggest you create one of those REST server by yourself, steps:
* Pick a Hash algorithm
* Create a REST service by using Jersey in Java or any other language you like
* Use RIAK database to save your key/long_link