I want to redirect the user to a certain page within the Login-area of my page. The problem is, i dont know how to acccess the page i want to be redirected to, after the login page. The Network-Section of firebug (see picture) tells me, the page gets the GET-request, but how can i access it and extract the redirect-url?
I tried the code from this Question but i wouldnt work. The first example (trying to access it via fwrite($sock, $request);
) tells me, that my request is a "bad request".
On the Second example, trying to extract the header via $headers = get_headers($url, 1);
my page doesnt load anymore. I learned, that this happens because its a recursive function, but i have no idea how to solve the problem.
I hope my question is fairly understandable and anyone can help me!