[erlang-questions] Having trouble with httpc

Samuel Barney <>
Tue Sep 15 18:52:06 CEST 2015


I just tried hitting a different page, and it worked just fine. I do have
the http://, but I think the error is that the url ends in '.xml'. Is there
a way to get around that?

Respectfully,
Samuel Barney

On Tue, Sep 15, 2015 at 10:48 AM, Drew Varner <>
wrote:

> Samuel,
>
> You need to make sure you have a compete URI, for example “
> 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
>
> Cheers,
> Drew
>
> 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?
>
> Respectfully,
> Samuel Barney
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150915/b0ec46bc/attachment.html>


More information about the erlang-questions mailing list