Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/HTTPS/Erlang/https-2.erl
Normal file
12
Task/HTTPS/Erlang/https-2.erl
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
-module(main).
|
||||
-export([main/1]).
|
||||
|
||||
main([Url|[]]) ->
|
||||
inets:start(),
|
||||
ssl:start(),
|
||||
http:request(get, {Url, [] }, [{ssl,[{verify,0}]}], [{sync, false}]),
|
||||
receive
|
||||
{http, {_ReqId, Res}} -> io:fwrite("~p~n",[Res]);
|
||||
_Any -> io:fwrite("Error: ~p~n",[_Any])
|
||||
after 10000 -> io:fwrite("Timed out.~n",[])
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue