post 请求数据:
# !/usr/bin/env python
# -*- coding: utf-8 -*-

import requests
import os
import time
myurl='http://192.168.137.3:9000/test111/'
print myurl
s=requests.session()
data={'a':'1111','b':'222'}
#res = requests.post(myurl, data=data)
res = requests.post(myurl, data=data)

print(res.text)


#@require_http_methods(["POST"])
def test111(req):
#time.sleep(5)
a=req.POST['a']
b=req.POST['b']
print a
print b
return HttpResponse(str(a))

1111
222
[18/Apr/2020 00:56:23] "POST /test111/ HTTP/1.1" 200 4