inets: request error on Windows XP

Ingela Anderton ingela@REDACTED
Fri Apr 29 17:35:25 CEST 2005


John Webb wrote:
> Hello,
> 
> I am using R10B-4 and have run into a problem using http:request/4 on  
> Windows XP (SP2). It seems that specifying a numeric IP address causes  
> a badmatch error somewhere in the depths of inets. The same code runs  
> fine on MAC OS. Has anyone else seen this problem or am I missing  
> something on the windows side?
> 
> On MAC OS 10.3.9 built from the source distribution I get:
> 
>    Erlang (BEAM) emulator version 5.4.5 [source]
> 
>    Eshell V5.4.5  (abort with ^G)
>    1> application:start(inets).
>    ok
>    2> {ok,  
> {R1,_,_}}=http:request(get,{"http://www.google.com",[]},[],[]),R1.
>    {"HTTP/1.1",200,"OK"}
>    3> {ok,  
> {R2,_,_}}=http:request(get,{"http://66.102.7.147",[]},[],[]),R2.
>    {"HTTP/1.1",200,"OK"}
>    4>
> 
> But on Windows XP (SP2) from the binary distribution I get:
> 
>    Erlang (BEAM) emulator version 5.4.5 [threads:0]
> 
>    Eshell V5.4.5  (abort with ^G)
>    1> application:start(inets).
>    ok
>    2> {ok,  
> {R1,_,_}}=http:request(get,{"http://www.google.com",[]},[],[]),R1.
>    {"HTTP/1.1",200,"OK"}
>    3> {ok,  
> {R2,_,_}}=http:request(get,{"http://66.102.7.147",[]},[],[]),R2.
>    ** exited: {{case_clause,{undefined,{error,
>                                          {'EXIT',
>                                              {{badmatch,{error,badarg}},
>                                                
> [{httpc_manager,start_handler,2},
>                                                 
> {httpc_manager,handle_request,2},
>                                                 
> {httpc_manager,handle_call,3},
[...]
Strange I will look in to it when I get some time! I am kind of
swamped at the moment so I am not promising any quick answers!

-- 
/Ingela - OTP team









More information about the erlang-questions mailing list