<div dir="ltr">The thing is, it works on requests where the resulting page is in valid xml.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 15, 2015 at 11:14 AM, Samuel Barney <span dir="ltr"><<a href="mailto:samjbarney@gmail.com" target="_blank">samjbarney@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
<p><span>Eshell V7.0.3 (abort with ^G)</span></p><span class="">
<p><span>1> inets:start().</span></p>
<p><span>ok</span></p>
<p><span>2> ssl:start().</span></p>
<p><span>ok</span></p>
</span><p><span>3> httpc:request("<a href="http://ingeniuxtest.byui.edu/d92/x107221.xml" target="_blank">http://ingeniuxtest.byui.edu/d92/x107221.xml</a>").</span></p>
<p><span>{error,no_scheme}</span></p></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 15, 2015 at 10:59 AM, Drew Varner <span dir="ltr"><<a href="mailto:drew.varner@redops.org" target="_blank">drew.varner@redops.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can you share an example?<br>
<br>
—snip--<br>
Eshell V7.0 (abort with ^G)<br>
1> inets:start().<br>
ok<br>
2> ssl:start().<br>
ok<br>
3> httpc:request("<a href="https://raw.githubusercontent.com/processone/ejabberd/6a9c9616d04003d73a7ce2916ee03c997f66bc1d/examples/transport-configs/configs/aim-transport.xml" rel="noreferrer" target="_blank">https://raw.githubusercontent.com/processone/ejabberd/6a9c9616d04003d73a7ce2916ee03c997f66bc1d/examples/transport-configs/configs/aim-transport.xml</a>").<br>
—end snip —<br>
<br>
Works for me.<br>
<div><div><br>
> On Sep 15, 2015, at 6:53 PM, Samuel Barney <<a href="mailto:samjbarney@gmail.com" target="_blank">samjbarney@gmail.com</a>> wrote:<br>
><br>
> To clarify, is there a way for me to access a url that ends with '.xml'<br>
><br>
> On Tue, Sep 15, 2015 at 10:52 AM, Samuel Barney <<a href="mailto:samjbarney@gmail.com" target="_blank">samjbarney@gmail.com</a>> wrote:<br>
> 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>
><br>
> Respectfully,<br>
> Samuel Barney<br>
><br>
> On Tue, Sep 15, 2015 at 10:48 AM, Drew Varner <<a href="mailto:drew.varner@redops.org" target="_blank">drew.varner@redops.org</a>> wrote:<br>
> Samuel,<br>
><br>
> You need to make sure you have a compete URI, for example “<a href="http://www.google.com" rel="noreferrer" target="_blank">http://www.google.com</a>”.<br>
><br>
> It looks like you forget the “http://“ portion.<br>
><br>
> See <a href="https://github.com/erlang/otp/blob/a2670f0822fc6729df956c8ec8c381340ff0a5fb/lib/inets/src/http_lib/http_uri.erl#L137-L139" rel="noreferrer" target="_blank">https://github.com/erlang/otp/blob/a2670f0822fc6729df956c8ec8c381340ff0a5fb/lib/inets/src/http_lib/http_uri.erl#L137-L139</a><br>
><br>
> Cheers,<br>
> Drew<br>
><br>
>> On Sep 15, 2015, at 6:43 PM, Samuel Barney <<a href="mailto:samjbarney@gmail.com" target="_blank">samjbarney@gmail.com</a>> wrote:<br>
>><br>
>> 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>
>><br>
>> Respectfully,<br>
>> Samuel Barney<br>
>> _______________________________________________<br>
>> erlang-questions mailing list<br>
>> <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
>> <a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>