Comment: the order of parameters in URL is critical
还有一个区别,param是encoded,因此=变成{}:
# '<URL>?user=admin+pass=admin'
url:http://httpbin.org/anything?user=admin+pass=admin&cmd=getpower
# requests.get(url, params=params
url:http://httpbin.org/anything?user=admin+pass%3Dadmin&cmd=getpower
# `dict` is **not** Ordered, it's possible to become reversed
url:http://httpbin.org/anything?cmd=getpower&user=admin+pass%3Dadmin
还有一个区别,}:
param
是encoded
,因此=
变成{要克服这个问题,请使用:
^{pr2}$结论:我认为没有办法克服作为URL一部分的传递。
假设服务器坏了? 阅读相关的SO post-request-failing-errno-10054
我忽略了您使用的是Plus而不是&;,因此
^{3}$auth
必须是:同时尝试:
服务器似乎不支持
post
和auth=
。在作为URL的一部分发送:
用Python:3.4.2测试
相关问题 更多 >
编程相关推荐