This question already has an answer here:
- cURL , get redirect url to a variable 4 answers
I'm gonna explain everything.
So I managed to code a script that fills the POST form for you, and now when the form fills and the user logs in, they get a special key, I want to obtain this special key from the URL, let's say the URL is.
script.php?key=1145682c3e7060514f57530c284f9ae3
This key will be changed every time the user logs in.
I hope I explained correctly.
Thanks!
PS. Script.php isn't hosted at my server, the script that auto fills the form is hosted at my server. I basically want it to auto fill the form (already finished that) then takes the key.
There's a login form ON A WEBSERVER THATS NOT MINE, after you login you get a key in the URL bar. I coded a script hosted ON MY WEBSERVER to go to that form and auto fill it using cURL, I need to make MY SCRIPT to obtain the key from the URL bar.
</div>