Re: cgi.FieldStorage() not work for python requests.post but work for requests.get

2017-05-07 Thread 程淼
在 2017年5月5日星期五 UTC+8下午6:04:26,程淼写道: > 在 2017年5月5日星期五 UTC+8下午6:02:04,程淼写道: > > here is the client use get > > -- > > import json > > import requests > > > > url = "http://abc.com:11/ip"; > > auth = {"ip":["10.100.1.1","10.100.1.2"]

cgi.FieldStorage() not work for python requests.post but work for requests.get

2017-05-05 Thread 程淼
here is the client use get -- import json import requests url = "http://abc.com:11/ip"; auth = {"ip":["10.100.1.1","10.100.1.2"], "time": "20170504133025" } try: req = requests.get(url,params=auth)

Re: cgi.FieldStorage() not work for python requests.post but work for requests.get

2017-05-05 Thread 程淼
在 2017年5月5日星期五 UTC+8下午6:02:04,程淼写道: > here is the client use get > -- > import json > import requests > > url = "http://abc.com:11/ip"; > auth = {"ip":["10.100.1.1","10.100.1.2"], > "time": "20170504133025" > }