D
D
Dmitry Bolshakov2020-04-15 14:54:07
PHP
Dmitry Bolshakov, 2020-04-15 14:54:07

Php curl redirect from another page?

In general, there is a site X
AND there is a request path X/api

You need to send a request to X/api
AND the user is on the X/ page (because it is redirected according to the parameters of those who came from X/api using js with X/).

How to solve this?
You can use JS (but api does not come with a link for a redirect, other parameters come with api for a post request when redirecting)

The access itself (there is no X site to change files!)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Korobkov, 2020-04-15
@BorisKorobkov

Need to send a request

curl
And for the user to be on the page X/

CURLOPT_REFERER

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question