Jump to content

http_get with HTTP_AUTH_DIGEST


lunarfish

Recommended Posts

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

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.