Can you post data from PHP?

I need to force the user's browser to send data using PHP to another site.

Example . You go to start.com/auto-login-hack (via GET) ... then PHP sets the correct headers, etc. and makes the browser go through POST to 3rdparty.com/login.php with login credentials.

I have done this in the past, having an HTML form and a onloadscript that submits the form to the destination.

I don't know enough about headlines, etc. Is it possible? Can someone relate an example? My search skills just appeared, how to use $_POST.

Thank.

+3
source share
2 answers

POST; HTTP. JavaScript, .

+4

, POST- PHP.

- curl, SO.

.

+7

Source: https://habr.com/ru/post/1735959/


All Articles