Hi,
I'm trying to upload an image to my Restlet server.
The server keep returning "Unsupported media type" (415).

Some details:

My request:
POST myURL HTTP/1.1
Host: localhost:8008
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 
Firefox/19.0
Accept: */*
Accept-Language: he,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
DNT: 1
Content-Type: text/plain
X-Requested-With: XMLHttpRequest
Content-Length: 5610
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache

I've also tried that with Content-Type: Image/png

In the server I have a resource suppose to handle this requests.
I tried to define it both with
@POST and @POST("image/*")
But keep getting the 415 error code.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3050870

Reply via email to