Answer the question
In order to leave comments, you need to log in
How to get data through a request to the site?
Hello! I'll go straight to the heart of the matter.
There is a web server (MySQL, NGINX, PHP) working on https
We want to receive information from the "operators" who make these payments (Sberbank, Qiwi, etc.)
As I understand it, the server will communicate via https with the string " https:/ /ip-adres/payment&id************* etc.
I can't understand how all this is implemented in general, i.e. how to get all these data with which our service was contacted , can anyone explain on the fingers or throw something to read?
Answer the question
In order to leave comments, you need to log in
this data can be passed through the request itself as parameters, for example:
?payment_amount=100&destination=replenishment
data can be passed in the request body, for example, in the form of a json document:
{
"payment_amount":100,
"destination":"replenishment"
}
and can also be passed via http header.
also, usually along with this data in the request, there is also a secret signature so that, for example, someone else cannot send you a fake message.
well, just in case, you can additionally check each such message directly on the service that sent this message.
Your web server is able to process all this data.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question