[erlang-questions] Having trouble with httpc

Drew Varner drew.varner@REDACTED
Tue Sep 15 18:48:18 CEST 2015


Samuel,

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>

Cheers,
Drew

> On Sep 15, 2015, at 6:43 PM, Samuel Barney <samjbarney@REDACTED> 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?
> 
> Respectfully,
> Samuel Barney
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150915/5a8a7656/attachment.htm>


More information about the erlang-questions mailing list