我有一个通过htaccess的密码保护的网站目录。我希望能够通过我的应用程序来打开这个网页,而无需用户输入密码,而是做编程。
例如,有没有一种方法,我可以嵌入在URL中的登录信息?如 http://www.mypage.com/page.html?htaccesspassword=asdasdas
谢谢!
解决方案 方案://用户名:密码@主机/路径
I have a directory on a website that is password protected via htaccess. I want to be able to open this web page through my application without having the user enter the password but rather do it programatically.
For instance, is there a way I can embed the login information in the URL? Such as http://www.mypage.com/page.html?htaccesspassword=asdasdas
thanks!
解决方案scheme://username:password@host/path