http:request: cannot connect behind proxy?

egarrulo <>
Fri Dec 18 16:21:47 CET 2009


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