Jump to content

Headers Question..?


AbydosGater

Recommended Posts

Hey Guys,

Im trying to write a script..two lines should do it..that would auto log me into my .htaccess protected directory.. I posted awhile back about what headers there were to be used..

I know i need to change the location with the Location header.. and to login use the "Authorization:" Header..

 

I thought the following should work:

<?
header("Location: MyDirectory");
header("Authorization: BASIC cm9vdDpVckFOMDBiNFJlYWRpblRoaXM=");
?>

But Its not working.. I think its the way im sending the headers.. Anyone any ideas that could help me fix?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/56954-headers-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.