简体   繁体   中英

IIS 7.5 site can't authenticate itself

I have a couple of sites on the same server and same domain (site1.domain.com, site2.domain.com...) which talk to each other with http post request. This works fine, but I also have a dev version of all sites that is under basic authentication so you need a username/password to see the sites, and on these the http post request doesn't work.

This seems to be because the server can't authenticate itself which seems kinda weird to me, I don't have much experience with IIS thou so probably have missed something.

Anyone know how to solve this? Don't know if it makes a difference, but the sites are using php, not asp.net

You will need to send your credentials with your request. I do not know much about drupal_http_request, but if it doesnt have built in methods to add credentials to the request, you can manually add an auth header by base64 encoding your credentials.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM