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 Link to comment https://forums.phpfreaks.com/topic/104683-http_get-with-http_auth_digest/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.