views:

84

answers:

1

I tried the inets library but it timeouts. I don't think it supports https. I am trying to use ibrowse, but it isn't working.

+4  A: 

This works fine for me:

1> application:start(inets).
ok
2> application:start(ssl).  
ok
3> http:request(head, {"https://money.yandex.ru", []}, [{ssl,[{verify,0}]}], []).
{ok,{{"HTTP/1.1",200,"OK"},
     [{"cache-control","max-age=0, proxy-revalidate"},
      {"date","Sun, 23 May 2010 00:38:33 GMT"},
      {"server","BAIDA/1.0.0"},
      {"content-type","text/html; charset=windows-1251"},
      {"expires","Sun, 23 May 2010 00:38:33 GMT"},
      {"set-cookie",
       "yandexuid=9041986921274575113; domain=.yandex.ru; path=/; expires=Tue, 19 Jan 2038 03:14:07 GMT"}],
     []}}

http:request("https://money.yandex.ru") would also work though, you just have to load appropriate applications before any request.

Yasir Arsanukaev
ahhh... I had to star ssl
gersh