<div dir="ltr">Sorry the response code is <b>303 not 302</b><div class="gmail_extra"><br><div class="gmail_quote">On 1 March 2016 at 15:46, Loïc Hoguin <span dir="ltr"><<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think you didn't say which server you are using. Not Cowboy considering the 404 you get.<span class=""><br>
<br>
On 03/01/2016 08:57 AM, Pavanan M S wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hi all,<br>
          I created a few rest end points for an app and it works. Now I<br>
am starting to write the test cases. But there is a strange issue in my<br>
code.<br>
<br>
         When I connect the rest client with url  "<br>
<a href="http://localhost:8080/%5Bresource_name%5D" rel="noreferrer" target="_blank">http://localhost:8080/[resource_name]</a> " it works perfectly.<br>
<br></span>
         But if I use " <a href="http://localhost:8080/%5Bresource_name%5D*/" rel="noreferrer" target="_blank">http://localhost:8080/[resource_name]*/</a> *" , (A<span class=""><br>
slash ( '/' ) in the end) it gives a 404.<br>
<br>
         Now that I am trying to write test cases using common test, I<br>
just tried to make requests using ibrowse first. And there I found<br>
something strange again.<br>
<br>
         When I used ibrowse to issue a post request, it returned 302,<br>
with the location of the resource. In the browser I am getting 200, I<br>
guess because of get.<br>
<br>
          Now, since get is working, I guess the resource is being<br>
created, Then what might be the reason that I am not getting 201 ? Also,<br>
Is this related to the above problem ?<br>
         Please help.<br>
<br>
<br></span>
_______________________________________________<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><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Loïc Hoguin<br>
<a href="http://ninenines.eu" rel="noreferrer" target="_blank">http://ninenines.eu</a><br>
Author of The Erlanger Playbook,<br>
A book about software development using Erlang<br>
</font></span></blockquote></div><br></div></div>