Questions tagged [http-status-code-415]

HTTP status code for Unsupported Media Type

This is usually because of typos in Content-Type header. Or in the rare case, where you're really sending unsupported media.

MDN Documentation

155 questions
0
votes
1 answer

Sendind files to web servicce : HTTP Error 415 Unsupported media type

I try from my rest client to send files to my web service but i keep getting 415 when i'm sure of the media type i'm sending. I'm using spring MVC : Here code of the rest client : public Response uploadFile(FormDataMultiPart multipart, ...) { …
0
votes
1 answer

Spring POST Fails HTTP 415 and 400

I am trying to make a POST call using fiddler to a spring rest API, @RequestMapping(value = "/GetPlanByBasicContext/", method = RequestMethod.POST) public @ResponseBody TravelPlan getPlanByBasicContext(@RequestBody BasicPlanContext b) { return…
varsh
  • 152
  • 10
0
votes
1 answer

ASP.NET WebServices web config file updated & HTTP 415 Error

I've developed a WCF webservice and deployed it to my web server. Testing my mobile application, the web service returns HTTP 415 Error. Wrong Media Type. So, I went into IIS Server Manager and added .svc mime type. My app worked once. I made…
IrvineCAGuy
  • 211
  • 2
  • 12
0
votes
1 answer

Volley post request 415 error2

JsonObjectRequest jor = new JsonObjectRequest(JsonObjectRequest.Method.POST, url, json, new Response.Listener() { @Override public void onResponse(JSONObject response) { Log.d("glamour",…
0
votes
0 answers

HTTP Error 415 Unsupported media type

I am still on the same problem as: Upload binary data with HTTP PUT with jersey jaxrs-ri-2.01 But I am one step further. Now I am testing my data upload with this tool: I'm Only Resting The problem, and I don't know if it's a client or a server…
user5193284
0
votes
4 answers

@RequestBody not working - HTTP Status 415

I have a problem. I try so send http post to my controller with angularjs. @RequestMapping(value = "/books/manage", method = RequestMethod.POST) @ResponseBody public void manageBooks(@RequestBody final BooksDTO dto) throws SystemException,…
jahra
  • 1,173
  • 1
  • 16
  • 41
0
votes
0 answers

Client/Service binding mismatch after adding [FaultContract] to Interface

i created a WCF webservice in .net/c#. I also created a test client app. everything works fine. Now i wanted to add a custom exception [DataContract] [Serializable] public class MyException : Exception { public MyException(string message) …
coconut
  • 494
  • 2
  • 5
  • 13
0
votes
1 answer

WebClient POST no key parameter to Web API

I know that if you want to POST a variable to Web API with WebClient you do not include the parameter key using (WebClient client = new WebClient()) { string URI = "http://blablabla/api/testaction"; string myParameters = "=TEST"; using…
0
votes
1 answer

php curl help on HTTP Status 415

I'm facing issue for getting curl response test.xml
0
votes
1 answer

415- Unsupported Media Type Error | angularjs + Spring3.2

I am getting 415 error in browser. I am not able to find the mistake. Could you please help. loginController.js $scope.user = {email: "admin", password: "password"}; $http.post('/expense-manager-api/login/authenticate', $scope.user, { …
0
votes
1 answer

HTTP error 415 on JSP page POST request but works on PHP

I'm not sure what exactly I can do to see what my issue is with my POST request. I had made a quick prototype in PHP using the CURL libraries to construct my request. When I try to do the same function in a JSP page I am getting a HTTP error 415.…
Crash667
  • 343
  • 2
  • 16
0
votes
4 answers

HTTP Status Codes in a PHP Application

I recently decided to send proper HTTP header from my PHP application. Since I've never done that before, I have a couple of very basic questions. Status codes 200 and 404 seem obvious. But how about the other ones? Is it allowed to/recommended/not…
0
votes
1 answer

Posting Multidimensional Array through PHP cURL to PayPal

In the PayPal tutorial on making your first call it gives you a JSON string that I've found impossible to post. I've exhausted Google and I just can't seem to figure out how to post this data to PayPal. The code below gives me a 415 error code…
makynopa
  • 3
  • 1
  • 3
0
votes
1 answer

ios Xtify push api 415 status code when trying to send a payload to instant push

I'm trying to send an payload to Xtify 2.0 push api. I tried from both my iOS app using this code : - (void)sendPushToXids:(NSMutableArray *)xids { ASIFormDataRequest *req = [[ASIFormDataRequest alloc] initWithURL:[NSURL…
user1078065
  • 412
  • 1
  • 5
  • 19
-1
votes
1 answer

.NET web API POST status error 415 unsupported media type

Coded a category controller and API that posts Title, Type and Icon but it is giving status 415 error (unsupported media type). I am trying to get my backend talking to a Python frontend. need suggestion on what I have done wrong. `using…
1 2 3
10
11