Php curl redirect to an other page?

In General, there are the website X
Is the path of the request X/api

Need to send a request to the X/api
And so the user was on the page X/ (because with it there is a redirect in the parameters came from X/api by means of JavaScript X/).

How to solve this?
You can use JS (but the api does not receive the link for the redirect, api coming the other parameters for the post request was redirected when)

The access (to change files to website X no!)
April 19th 20 at 12:08
1 answer
April 19th 20 at 12:10
Need to send a request


And so the user was on the page X/

Cap, the tags have the "curl"

Please read the description of the issue - ashleigh_Hacke commented on April 19th 20 at 12:13

Find more questions by tags PHP