[django] request.body与request.POST请求过程区别

浏览器 ------------- 服务器

"GET url?a=1&b=2 http/1.1\r\user_agent:Google\r\ncontentType:urlencoded\r\n\r\n"

"POST url http/1.1\r\user_agent:Google\r\ncontentType:urlencoded\r\n\r\n
a=1&b=2"

request.body: a=1&b=2
request.POST:
if contentType:urlencoded:
	a=1&b=2----->{"a":1,"b":2}

你可能感兴趣的:(Django)