test1.erl
-module(test1).
-export([ttt/0]).
ttt()-> inets:start(), R=httpc:request(“http://www.baidu.com”), ttt(R).
ttt({ok,_Result})-> io:format(“hello ok”); ttt({error,_Reason})-> io:format(“hello error”).
http client sample.
注意 - 你可以用以下 HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
昵称
邮箱
网址
在此浏览器中保存我的显示名称、邮箱地址和网站地址,以便下次评论时使用。
Δ
0 条评论。