S
S
Sergey Zolotarev2021-05-24 08:55:31
PHP
Sergey Zolotarev, 2021-05-24 08:55:31

How to fix a 404 error when correctly sending a POST request to a web service?

Good morning!
I recently wrote and tested the web service code that is responsible for sending data from the callback order form, interacting with the landing page. When I tested the service in Postman using this POST request:

phone=89012345678

And generating a response in JSON format, the service returned a 404 error:
{
    "result": "Not found"
}

Questions:
  1. The algorithm itself was written without errors, and why is this happening (if it should issue the 200th HTTP status)?
  2. What did I do wrong?
  3. How can I make sure that without a 404 error, the POST request is sent normally?

Thank you in advance for your help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Kruchinin, 2021-06-19
@malfixfx

Show your vangi request on vacation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question