Avnish1985 / bitly-api

Automatically exported from code.google.com/p/bitly-api
0 stars 0 forks source link

Shortening is not working properly with "_" in the subdomain. #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
http://test_blog.cotweet.com => http://bit.ly/90HJiT
http://bit.ly/90HJiT => http://blog.cotweet.com/

Any idea why "test_" is missing?

Thanks.

Original issue reported on code.google.com by tintn.hc...@gmail.com on 25 Aug 2010 at 3:53

GoogleCodeExporter commented 8 years ago
Valid characters for a domain name are the characters a through z, A through Z, 
digits 0 through 9, and the hyphen. an underscore is not a valid character in a 
domain name (even though admittedly it does work in some systems).

http://en.wikipedia.org/wiki/Domain_Name_System#Domain_name_formulation

This scenario should however probably result in a invalid_uri error or a proper 
encode instead of a different URL being shortened.

Original comment by jehiah on 20 Oct 2010 at 3:19

GoogleCodeExporter commented 8 years ago
Do we have fixes for this issue where the URL contains "_"?

Original comment by sakthive...@gmail.com on 16 Mar 2011 at 5:29