S
S
Schoolboy.2015-10-02 16:02:50
PHP
Schoolboy., 2015-10-02 16:02:50

How to send a POST request?

It is necessary that the script redirect the user to the page and at the same time send a POST request, in short, you need to make it look like the user submitted the form, but only without the form via CURL.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivanq, 2015-10-02
@Ivanq

// тут отправляете curl

Header("Location: url.php");

I
Ivan Koryukov, 2015-10-02
@MadridianFox

Most likely it means
but only the parameter must be passed through post, not get.
curl will not give this effect. Here it is necessary for the user to issue an intermediate page with a post form (maybe even hidden), which, when the page is fully loaded, will automatically submit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question