- 论坛徽章:
- 27
|
本帖最后由 shijiang1130 于 2015-11-21 23:11 编辑
下载到你安装erlang的lib目录,- 1> application:start(ibrowse).
- ok
复制代码- 4> ibrowse:send_req("http://www.baidu.com",[],get).
- {ok,"200",
- [{"Date","Sat, 21 Nov 2015 15:08:56 GMT"},
- {"Content-Type","text/html"},
- {"Content-Length","14613"},
- {"Last-Modified","Wed, 03 Sep 2014 02:48:32 GMT"},
- {"Connection","Keep-Alive"},
- {"Vary","Accept-Encoding"},
- {"Set-Cookie",
- "BAIDUID=1CE85A2CEB532E84561A842237CA23A1:FG=1; expires=Thu, 31-Dec-37 23:55:55 GMT; max-age=2147483647; path=/; domain=.baidu.com"},
- {"Set-Cookie",
- "BIDUPSID=1CE85A2CEB532E84561A842237CA23A1; expires=Thu, 31-Dec-37 23:55:55 GMT; max-age=2147483647; path=/; domain=.baidu.com"},
- {"Set-Cookie",
- "PSTM=1448118536; expires=Thu, 31-Dec-37 23:55:55 GMT; max-age=2147483647; path=/; domain=.baidu.com"},
- {"Set-Cookie","BDSVRTM=0; path=/"},
- {"P3P","CP=\" OTI DSP COR IVA OUR IND COM \""},
- {"Server","BWS/1.1"},
- {"X-UA-Compatible","IE=Edge,chrome=1"},
- {"Pragma","no-cache"},
- {"Cache-control","no-cache"},
- {"BDPAGETYPE","1"},
- {"BDQID","0xfdf08a62000d1e0f"},
- {"BDUSERID","0"},
- {"Accept-Ranges","bytes"}],
- [60,33,68,79,67,84,89,80,69,32,104,116,109,108,62,60,33,45,
- 45,83,84,65,84,85,83|...]}
- 5>
复制代码 |
|