Search found 3 matches

by MarioM
Thu Sep 19, 2024 9:22 am
Forum: HTTPAPI
Topic: HTTP Status 415 “ Unsupported Media Type
Replies: 4
Views: 29723

Re: HTTP Status 415 “ Unsupported Media Type

Hi Scott
you are right about JSON and multipart but the server side told me that they use JSON, instead of multipart . However I used your http_mfd_encoder* routine and was able to solve the error.
Thanks
Mario
by MarioM
Tue Sep 03, 2024 1:07 pm
Forum: HTTPAPI
Topic: HTTP Status 415 “ Unsupported Media Type
Replies: 4
Views: 29723

Re: HTTP Status 415 “ Unsupported Media Type

After I post the question I was able to speak to the server side manager who told me that I have to send a Content-Type “multipart/form-data” instead of “application/json" . Besides he told me that now in the body of the request there is a unique JSON with all fields while should be so many mul...
by MarioM
Tue Sep 03, 2024 12:23 pm
Forum: HTTPAPI
Topic: HTTP Status 415 “ Unsupported Media Type
Replies: 4
Views: 29723

HTTP Status 415 “ Unsupported Media Type

Hello It is my first project about consumig a REST webservice with JSON. I use HTTPAPI+YAJL for my program. When I call it I receive the error HTTP Status 415 – Unsupported Media Type . I did a search on web for this error and I understand that the server doesn't undestand my request but I don't u...