将现有连接与UIC.blackboard.com:443归结。 http请求发送,等待响应...401
用户/密码身份验证失败 我可能使用命令错误。我会感谢帮助
我尝试了wget和curl。
HTTP 401 error
curl --user YOUR-USERNAME:YOUR-PASSWORD http://www.example.com
wget --user YOUR-USERNAME --password YOUR-PASSWORD http://example.com/
用于OAuth-2.0身份验证:
curl -H "Authorization: OAuth <ACCESS_TOKEN>" http://www.example.com
您试图打开的页面使用JavaScript,而JavaScript不受WGET的支持,因此这就是该选项的终结。
为了卷曲,如果您尝试欺骗JavaScript支持会发生什么(此-May
curl -L -v "https://uic.blackboard.com:443" -A "Mozilla/5.0 (compatible; MSIE 7.01; Windows NT 5.0)"
@bruce malaudzi提到的,即使您可以解决JavaScript问题,也存在身份验证错误,因此请修改我的答案,以包括:
# basic authentication (your PWD is going to be saved
# in console history so be careful here):
curl -L -v "https://uic.blackboard.com:443" \
-A "Mozilla/5.0 (compatible; MSIE 7.01; Windows NT 5.0)" \
--user USERNAME:PASSWORD
# OAuth2 authentication:
curl -L -v "https://uic.blackboard.com:443" \
-A "Mozilla/5.0 (compatible; MSIE 7.01; Windows NT 5.0)" \
-H "Authorization: OAuth <YOUR_TOKEN_STRING>"