为什么不能用 __VIEWSTATE 字符串
写了一段脚本用来向一个 ASP.NET post数据,代码如下:
viewstate = 'example'
dic = {
'TextBox1':'admin',
'TextBox2':'admin',
'__VIEWSTATE':viewstate
}
params = urllib.parse.urlencode( dic )
params = params.encode('utf-8')
print( params )
#response = urllib.request.urlopen( "http://xx.com/xx.aspx", params )
#page = response.read()
#print( page.decode("utf-8") )