B
B
Bezly2019-04-25 15:21:12
JavaScript
Bezly, 2019-04-25 15:21:12

RESTful service fails POST query, why?

Hello,
I am new to RESTful services. I'll try to describe the problem I'm facing. I have some external RESTful service to which I connect and collect data using GET requests.
But now I came across a request that essentially returns data, but why does it work via POST.
5cc1a2c89eebd102790073.png
Tried to recreate it in POSTMAN but nothing worked.
First, I gave the status 415 Unsupported Media Type , searching the Internet, found that the problem was in the content format, set it to the same one that I found in the Inspector(Network). Then I added all Headers as in Inspector(Network).
After all these manipulations, it gives the status 500 Internal Server Error. I don’t understand why it gives this status when the same request with the same settings passes as status 200 on the site.
I don’t know which way to dig, maybe someone has an idea what to do next or how to solve this problem.
Thanks,
Dmitry

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Ganin, 2019-04-26
@dohera

Post requests usually also have a body, take a closer look at the information about the request.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question