I'm trying to redirect to a page that uses basic authentication, with no success so far. Most examples I found online where to either use fopen or curl to request a resource, which I don't want to do.
I've tried putting in the header the "Authorization: Basic" plus the encoded user:password, but it didn't work. Is it because I first need to receive a request from the other page for the authorization credentials?