lunarfish Posted May 8, 2008 Share Posted May 8, 2008 Hello folks. Can anyone tell me what's wrong with this? The digest authentication works to the url if I bring the page up in the browser but not using http_get. I can't find a sample bit of code anywhere for doing this. I've tried md5ing the password or leaving it clear and I've checked that the HTTP_AUTH_DIGEST constant does resolve to an int. $body = http_parse_message(http_get($url, array('httpauth' => "$user:$password",'httpauthtype' => HTTP_AUTH_DIGEST),$info)); HTTP Status 401 - type Status report message description This request requires HTTP authentication (). Any suggestions would be welcome. I can't think what else to try and I've run out of google ideas. Dan Quote Link to comment https://forums.phpfreaks.com/topic/104683-http_get-with-http_auth_digest/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.