使用postman 发送post请求 form表单数据填写位置:

后端代码:
def post(self, request):
jip_port = request.POST.get('ip_port')
juname = request.POST.get('uname')
jpswd = request.POST.get('pswd')
result = {"status": 200, "msg": "登录成功"}
return HttpResponse(json.dumps(result), content_type="application/json,charset=utf-8")
使用postman 发送post请求 json数据填写位置:

后端代码:
def post(self, request):
res = request.body.decode('utf-8')
本文详细介绍了如何使用Postman工具向后端发送POST请求,包括form表单数据和JSON数据的填写位置,以及后端代码如何解析这些数据。
2574

被折叠的 条评论
为什么被折叠?



