[erlang-questions] Having trouble with httpc
Tue Sep 15 18:48:18 CEST 2015
You need to make sure you have a compete URI, for example “http://www.google.com <http://www.google.com/>”.
It looks like you forget the “http://“ portion.
See https://github.com/erlang/otp/blob/a2670f0822fc6729df956c8ec8c381340ff0a5fb/lib/inets/src/http_lib/http_uri.erl#L137-L139 <https://github.com/erlang/otp/blob/a2670f0822fc6729df956c8ec8c381340ff0a5fb/lib/inets/src/http_lib/http_uri.erl#L137-L139>
> On Sep 15, 2015, at 6:43 PM, Samuel Barney <> wrote:
> I'm trying to use httpc:request/1, but every single time I call it I get a no_scheme error. I've started inets, and all of the examples I've found say I am doing it correctly. Has anyone had this error before, and how did you resolve it?
> Samuel Barney
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions