有没有办法使用Windows / NTLM ProxyUseDefaultCredentials在Python中发出请求?使用代理在Python中发出https请求,而无需为代理指定用户名和密码。
这适用于powershell,注意最后的标志:
SELECT
`Thread`.`ID` AS `ThreadID`,
`Post`.`CreatorName` AS `LastPostBy`,
`Post`.`CreatorUserID` AS `LastPostByID`,
`Post`.`CreationDate` AS `LastPostDate`
FROM
`Post`
INNER JOIN
`Thread` ON `Post`.`ThreadID` = `Thread`.`ID`
WHERE (`Thread`.`ID`,`Post`.`CreationDate`) in(SELECT `Post`.`ThreadID`,
MAX(`Post`.`CreationDate`)
FROM `Post`
GROUP BY `Post`.`ThreadID`)
ORDER BY
`Post`.`CreationDate` DESC
我可以在python中执行类似的代码吗?
Invoke-WebRequest -Uri $uri -Headers $Headers -Body $Payloadjson -Method Post -Proxy 'http://myproxy.com:80' -ProxyUseDefaultCredentials