from win32com.client import Dispatch
winhttp = Dispatch('winhttp.winhttprequest.5.1')
print winhttp.Option(6) #True
winhttp.Option(6) = False #SyntaxError <----------------how to set Option(6) to false
print winhttp.Option(6)
winhttp.Open('GET', 'http://google.com', False)
winhttp.Send()
print winhttp.responsetext
============================================
输出:
无效语法:winhttp.py,第 13 行,pos 11 文件“c:\Users\***\Desktop\winhttp.py”,第 13 行,在?设置 winhttp.Option(6) = False
怎么做?非常感谢!