Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.