erlang https


application:start(inets),
application:start(crypto),
application:start(asn1), %一定要的
application:start(public_key),  %一定要的
application:start(ssl),  %一定要的
httpc:request(get,{"https://example.com",[]},[{autoredirect, true},{timeout, 10000}],[{sync, false}]).



(具体什么每个什么意思下次一一解释 )



GOOD LUCK!

猜你喜欢

转载自laoyaos.iteye.com/blog/2213276