<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Samuel,<div class=""><br class=""></div><div class="">httpc:request(get, {Url, []}, [{auto redirect, false}], []).</div><div class=""><br class=""></div><div class="">I bet your server is giving you a redirect and the redirect URL is invalid.</div><div class=""><br class=""></div><div class="">- Drew</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 15, 2015, at 7:14 PM, Samuel Barney <<a href="mailto:samjbarney@gmail.com" class="">samjbarney@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><p class=""><span class="">Eshell V7.0.3  (abort with ^G)</span></p><p class=""><span class="">1> inets:start().</span></p><p class=""><span class="">ok</span></p><p class=""><span class="">2> ssl:start().</span></p><p class=""><span class="">ok</span></p><p class=""><span class="">3> httpc:request("<a href="http://ingeniuxtest.byui.edu/d92/x107221.xml" class="">http://ingeniuxtest.byui.edu/d92/x107221.xml</a>").</span></p><p class=""><span class="">{error,no_scheme}</span></p></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Sep 15, 2015 at 10:59 AM, Drew Varner <span dir="ltr" class=""><<a href="mailto:drew.varner@redops.org" target="_blank" class="">drew.varner@redops.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can you share an example?<br class="">
<br class="">
—snip--<br class="">
Eshell V7.0  (abort with ^G)<br class="">
1> inets:start().<br class="">
ok<br class="">
2> ssl:start().<br class="">
ok<br class="">
3> httpc:request("<a href="https://raw.githubusercontent.com/processone/ejabberd/6a9c9616d04003d73a7ce2916ee03c997f66bc1d/examples/transport-configs/configs/aim-transport.xml" rel="noreferrer" target="_blank" class="">https://raw.githubusercontent.com/processone/ejabberd/6a9c9616d04003d73a7ce2916ee03c997f66bc1d/examples/transport-configs/configs/aim-transport.xml</a>").<br class="">
—end snip —<br class="">
<br class="">
Works for me.<br class="">
<div class="HOEnZb"><div class="h5"><br class="">
> On Sep 15, 2015, at 6:53 PM, Samuel Barney <<a href="mailto:samjbarney@gmail.com" class="">samjbarney@gmail.com</a>> wrote:<br class="">
><br class="">
> To clarify, is there a way for me to access a url that ends with '.xml'<br class="">
><br class="">
> On Tue, Sep 15, 2015 at 10:52 AM, Samuel Barney <<a href="mailto:samjbarney@gmail.com" class="">samjbarney@gmail.com</a>> wrote:<br class="">
> 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?<br class="">
><br class="">
> Respectfully,<br class="">
> Samuel Barney<br class="">
><br class="">
> On Tue, Sep 15, 2015 at 10:48 AM, Drew Varner <<a href="mailto:drew.varner@redops.org" class="">drew.varner@redops.org</a>> wrote:<br class="">
> Samuel,<br class="">
><br class="">
> You need to make sure you have a compete URI, for example “<a href="http://www.google.com/" rel="noreferrer" target="_blank" class="">http://www.google.com</a>”.<br class="">
><br class="">
> It looks like you forget the “<a href="http://“" class="">http://“</a> portion.<br class="">
><br class="">
> See <a href="https://github.com/erlang/otp/blob/a2670f0822fc6729df956c8ec8c381340ff0a5fb/lib/inets/src/http_lib/http_uri.erl#L137-L139" rel="noreferrer" target="_blank" class="">https://github.com/erlang/otp/blob/a2670f0822fc6729df956c8ec8c381340ff0a5fb/lib/inets/src/http_lib/http_uri.erl#L137-L139</a><br class="">
><br class="">
> Cheers,<br class="">
> Drew<br class="">
><br class="">
>> On Sep 15, 2015, at 6:43 PM, Samuel Barney <<a href="mailto:samjbarney@gmail.com" class="">samjbarney@gmail.com</a>> wrote:<br class="">
>><br class="">
>> 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?<br class="">
>><br class="">
>> Respectfully,<br class="">
>> Samuel Barney<br class="">
>> _______________________________________________<br class="">
>> erlang-questions mailing list<br class="">
>> <a href="mailto:erlang-questions@erlang.org" class="">erlang-questions@erlang.org</a><br class="">
>> <a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank" class="">http://erlang.org/mailman/listinfo/erlang-questions</a><br class="">
><br class="">
><br class="">
><br class="">
<br class="">
</div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>