[erlang-bugs] issue with http:request

Alexander Zhuravlev a.zhuravlev@REDACTED
Wed Feb 10 12:29:04 CET 2010


On 2/10/10 1:52 PM, Kenji Rikitake wrote:
>> 6>  http:request(head, {"http://これ概ね当たってる。www.page.sannet.ne.jp/mayuri/zyosei/mar_306.html", []}, [{timeout, 100}], []).
> 
> Can you directly write non-ASCII Unicode letters in the URL like this?
> I guess not.  If the first part ends with .jp were a domain name, this
> wouldn't be a legal one because this should have been encoded with IDN
> (International Domain Name) encoding, which is represented in ASCII
> only. This sort of domain name cannot be handled by DNS. (BTW this is a
> mixed string of Japanese and English letters, FYI.)

Yes, I know and too think that the URL is not correct, however
erlang http client code (or underlying inets code?) does not handle
this case correctly and just crash or hang, regardless of the fact that
the function should have returned within 100 ms. It is just a question
of correct input handling.




More information about the erlang-bugs mailing list