http:request: cannot connect behind proxy?

egarrulo <>
Tue Dec 22 15:53:55 CET 2009


Nevermind. Today is working, who knows why. Well, after a Windows system
restore...

Thanks.

2009/12/18 egarrulo <>

> Hello,
>
> I'm trying to get a HTML document and I'm behind a proxy, but my request
> keeps timing out. I'm following directions found at
> http://erlang.mirror.su.se/documentation/doc-5.7.3/lib/inets-5.1.3/doc/html/http_client.html
>
> Here is the code:
>
> -module (test).
> -compile([export_all]).
> -define (URL,  "http://www.google.it").
>
> main()->
> inets:start(),
> http:set_options([{proxy, {{"10.249.69.41", 8080}, ["localhost"]}}]),
>  { ok, {_Status, _Headers, Body }} = http:request (?URL).
>
> Tested on Erlang-R13B01 + Windows XP.
>
> Any help?
>
> Thanks.
>


More information about the erlang-questions mailing list