shijiang1130 发表于 2014-10-24 21:08

【httpc】如何抓取一个https的页面?

本帖最后由 shijiang1130 于 2014-12-26 23:08 编辑

https://www.paypal.com/c2/webapps/mpp/home
以上地址

shijiang1130 发表于 2014-12-26 23:22

-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]
查看完整版本: 【httpc】如何抓取一个https的页面?