I think you may be using the method a little wrong. It looks like you are sending the values on the querystring as a GET request, when they must be submitted as a POST requested, formated as JSON. You can find details of the methods, and the Request / Result data formats here:
Getting Unsupported media type
I have installed trhe uRest package but when doing a post to:
http://mysite.com/rest/token?Username=name&Password=pass&Type=User
I get HTTP/1.1 415 Unsupported Media Type.
I also have the headers:
Content-Type: application/json
Accept: application/json
Any suggestions??
Hi Brandon,
I think you may be using the method a little wrong. It looks like you are sending the values on the querystring as a GET request, when they must be submitted as a POST requested, formated as JSON. You can find details of the methods, and the Request / Result data formats here:
http://urest4umb.codeplex.com/wikipage?title=Token&referringTitle=Documentation
Cheers
Matt
Matt,
Could you give me a sample of what my URI should look like. I am using the rest-client at http://code.google.com/p/rest-client/ to test.
I was sending a POST command to the URI i posted inmy first post.
is working on a reply...