Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 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