よくわすれるのでメモ。

簡単な事なんですが、よくわすれるのでメモ。

$ erl
Erlang (BEAM) emulator version 5.6.4 [source] [64-bit] [smp:2] [async-threads:0] [kernel-poll:false]

Eshell V5.6.4  (abort with ^G)
1> application:start(inets).
ok
2> http:request("http://www.google.com").
{ok,{{"HTTP/1.0",200,"OK"},
     [{"cache-control","private, max-age=0"},
      {"connection","close"},
      {"date","Sat, 13 Sep 2008 16:24:13 GMT"},
      {"via","1.0 .:80 (squid)"},
      {"server","gws"},
      {"content-type","text/html; charset=Shift_JIS"},
      {"expires","-1"},
      {"set-cookie",
       "PREF=ID=49a51d9de300610e:TM=1221323053:LM=1221323053:S=DnqAKjMQozcw3MUL; expires=Mon, 13-Sep-2010 16:24:13 GMT; path=/; domain=.google.co.jp"},
      {"x-cache","MISS from ."}],
     [60,104,116,109,108,62,60,104,101,97,100,62,60,109,101,116,
      97,32,104,116,116,112,45,101|...]}}