【httpc】如何抓取一个https的页面?
本帖最后由 shijiang1130 于 2014-12-26 23:08 编辑https://www.paypal.com/c2/webapps/mpp/home
以上地址 -module(t).
-compile(export_all).
login()->
ssl:start(),
inets:start(),
httpc:set_options([{cookies, enabled}]),
httpc:request(post, {"https://www.paypal.com/c2/cgi-bin/webscr?cmd=_login-submit",[],"application/x-www-form-urlencoded",
"login_email=cu%40chinaunix.net&login_password=often2here&submit=Log+In"}, [{ssl,[{verify,0}]}], []),
{ok,{_,_,Res}}=httpc:request("https://www.paypal.com/c2/cgi-bin"),
io:format().
页:
[1]