http client us ascii restriction

Igor Goryachev goryachev@REDACTED
Tue Jun 27 10:44:10 CEST 2006


Hello.

I have met some US ASCII restrictions in erlang's http client:

igor@REDACTED:~% erl
Erlang (BEAM) emulator version 5.5 [source] [64-bit] [async-threads:0] [kernel-poll:false]

Eshell V5.5  (abort with ^G)
1> http_uri:parse("http://www.google.com/search?q=%D1%82%D0%B5%D1%81%D1%82").
{error,no_query}
2>

I have made a trivial patch that fixes this misbehaviour (attached in this message):

goryachev@REDACTED:~% erl
Erlang (BEAM) emulator version 5.5 [source] [async-threads:0] [kernel-poll:false]

Eshell V5.5  (abort with ^G)
1> http_uri:parse("http://www.google.com/search?q=%D1%82%D0%B5%D1%81%D1%82").
{http,"www.google.com",80,"/search","?q=%d1%82%d0%b5%d1%81%d1%82"}
2> 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: http_uri_255.diff
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20060627/9a31812a/attachment.ksh>
-------------- next part --------------


-- 
Igor Goryachev
Yandex development team.


More information about the erlang-questions mailing list