HTTP 404 on an Invalid PUT

6 views
Skip to first unread message

Rohit Manohar

unread,
Jun 6, 2011, 10:54:05 PM6/6/11
to terrastore-discussions
Hi

If I do a PUT without a header saying application/json like:

curl -v -X PUT -d "{ \"RollNo\" : \"0006\", \"FName\" : \"Jackie\",
\"LName\" : \"Chan\" }" http://10.56.224.241:8000/School/prof005

I get the output:
HTTP/1.1 404 Could not find resource for relative : /School/prof005 of
full path: http://10.56.224.241:8000/School/prof005

Shouldn't I be getting HTTP/1.1 400 - Bad Request?

Regards,
Rohit Manohar

Sergio Bossa

unread,
Jun 7, 2011, 3:38:13 PM6/7/11
to terrastore-...@googlegroups.com
On Tue, Jun 7, 2011 at 4:54 AM, Rohit Manohar <roh...@gmail.com> wrote:

> If I do a PUT without a header saying application/json like:
>
> curl -v -X PUT -d "{ \"RollNo\" : \"0006\", \"FName\" : \"Jackie\",
> \"LName\" : \"Chan\" }" http://10.56.224.241:8000/School/prof005
>
> I get the output:
> HTTP/1.1 404 Could not find resource for relative : /School/prof005 of
> full path: http://10.56.224.241:8000/School/prof005

Rohit, I correctly get a "415 Cannot consume content type" response:
which Terrastore version are you using?

--
Sergio Bossa
http://www.linkedin.com/in/sergiob

Rohit Manohar

unread,
Jun 7, 2011, 5:31:04 PM6/7/11
to terrastore-discussions
0.8.1

On Jun 7, 12:38 pm, Sergio Bossa <sergio.bo...@gmail.com> wrote:

Sergio Bossa

unread,
Jun 9, 2011, 4:03:26 AM6/9/11
to terrastore-...@googlegroups.com
On Tue, Jun 7, 2011 at 11:31 PM, Rohit Manohar <roh...@gmail.com> wrote:

> 0.8.1

I tried with the 0.8.2 development version: any chances you can check
out sources and build them?

Reply all
Reply to author
Forward
0 new messages