我曾尝试过许多法典,通过圆环或httplib张贴参数。
因此,这是我的法典:
import httplib,urllib
para = urllib.urlencode({"username":"[email protected]","password":"test"})
conn = httplib.HTTPconnection("account.example.com") #consider it s https !
conn.request("POST","/eng/auth/login",para)
res = conn.getresponse()
print res.status , res.reason
It s said 301 moved permanently! Any tips or lead … ? Thank you even for reading <3