R
R
roma671772021-07-31 03:50:32
PHP
roma67177, 2021-07-31 03:50:32

How to make a redirect in a curl request?

For example, I'm on a certain page, and I need to send some data via a POST request to another page, so that it's as if I'm hitting submit on a normal form with the POST method. That is, there should be a redirect to the second page, on which $ _POST will contain the data that I sent from the first page. But all this without html forms.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2021-07-31
@roma67177

what the fuck is a redirect?
create a new request and submit the data.

D
Developer, 2021-07-31
@samodum

Create a 301 status with a redirect url with headers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question