willthiswork89 Posted October 18, 2008 Share Posted October 18, 2008 hi all, im trying somthing out here and for some reason my blackberry is unable to get certain types of WWW-Authenticate, im trying to put together a php form which will do an auto redirect to a page with the proper username and password to login to a website i like, that way i can goto my website, it will redirect to the page i want with the username and password that i supply which will authenticate without bringing up the normal USERNAME:PASSWORD dialog. any suggestions? Link to comment https://forums.phpfreaks.com/topic/128929-solved-web-credentials/ Share on other sites More sharing options...
willthiswork89 Posted October 22, 2008 Author Share Posted October 22, 2008 bump Link to comment https://forums.phpfreaks.com/topic/128929-solved-web-credentials/#findComment-671738 Share on other sites More sharing options...
trq Posted October 22, 2008 Share Posted October 22, 2008 Code? Link to comment https://forums.phpfreaks.com/topic/128929-solved-web-credentials/#findComment-671788 Share on other sites More sharing options...
willthiswork89 Posted October 22, 2008 Author Share Posted October 22, 2008 unfortunatly, i do not have code for this. i am asking how and if this is possible. Link to comment https://forums.phpfreaks.com/topic/128929-solved-web-credentials/#findComment-671805 Share on other sites More sharing options...
discomatt Posted October 22, 2008 Share Posted October 22, 2008 You might want to try the syntax http://user:[email protected]/path/file.php. I believe that's client-dependent though. Link to comment https://forums.phpfreaks.com/topic/128929-solved-web-credentials/#findComment-671815 Share on other sites More sharing options...
willthiswork89 Posted October 22, 2008 Author Share Posted October 22, 2008 yes that does not work, thats why i am wanting to know if there is a way through php to add them to the headers... what im doing is tricking my blackberry into thinking its connecting to a BES but in reality it is my development server which acts as a BES. All i did was sign up for dyndns.org point it to my ip address and then i do mysite.com\file.php... file.php simply does a redirect to localhost:17208\myblackberryapp.cod but i get a unauthorized access page when trying to get to it from the blackberry no username popup screen, on my computer i get a username password dialog, in which after that it logs in fine. so i need to add to the headers for the redirect my username and password so it automatically accepts me and takes me to the page. and no you cannot just remove the password its not possible due to the behavior of the emulator. Link to comment https://forums.phpfreaks.com/topic/128929-solved-web-credentials/#findComment-671826 Share on other sites More sharing options...
discomatt Posted October 22, 2008 Share Posted October 22, 2008 I don't think so. You could cURL the page and serve it with PHP... but I don't think it's possible to authenticate your client via PHP. Link to comment https://forums.phpfreaks.com/topic/128929-solved-web-credentials/#findComment-671834 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.