抓包POST地址:http://×××/member.php?mod=logging&loginhash=LqP51
其中loginhash是表单提交时用JS添加的,使用requests的时候可以把{'loginhash':'LqP51'}
放入data中可以吗?
还是说要手动拼接到url呢?
http网络请求常用的两种..post的数据一般是放倒httpbody中.get就放在链接后面拼接
That depends on the server implementation.
只有一些简单的参数的话,拼装到URL里也可以的。
首先post
请求,参数通常放在requestBody
里,不是拼接在URL
里。
其次requests
用法应该相对简单吧:
requests.post('http://httpbin.org/post', data = {'key':'value'})
http://www.python-requests.org/en/master/user/quickstart/#passing-parameters-in-urls