Erlang ChicagoBoss access external files from URL -
how access external files other servers using cb ?
-module(example_index_controller, [req, sessionid]). -compile([export_all]). index('get', []) -> csv = http:request(body, {"https://www.example.com/catalog.csv", []}, [{ssl,[{verify,0}]}], {ok, [{data, csv }]}.
i found make ssl working inside console need do:
application:start(inets). application:start(ssl). application:start(crypto). application:start(asn1). application:start(public_key). application:start(ssl).
i not know how implement cb or check if there.
Comments
Post a Comment