A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
10
Task/HTTPS/Erlang/https-1.erl
Normal file
10
Task/HTTPS/Erlang/https-1.erl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
-module(main).
|
||||
-export([main/1]).
|
||||
|
||||
main([Url|[]]) ->
|
||||
inets:start(),
|
||||
ssl:start(),
|
||||
case http:request(get, {URL, []}, [{ssl,[{verify,0}]}], []) of
|
||||
{ok, {_V, _H, Body}} -> io:fwrite("~p~n",[Body]);
|
||||
{error, Res} -> io:fwrite("~p~n", [Res])
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue