Features of the View:Receives the request, processes it, and returns the reply.The contents returned by the view are:
HttpResponse object or Sub-object
Render returns an object of HttpResponse
Jsonresponse is a subclass of
Recently Old and HttpContext, HttpRequest, HttpResponse HttpRuntime, httpserverutility these objects to deal with. It's time to put them down.
A HttpRuntime exposes a static method UnloadAppDomain (), which allows us to restart the site with code.
1. Get the parameters in the URL path
Requirement: assume that the user accesses 127.0.0.1/user/1/2. What should I do?
(1) unnamed parameters (location parameters)
# URLs in the project. add settings under py: URL (R' ^ user/(\ D +) $ ', views.
The JSON parameters are sent through the HttpClient post method for interface testing. Learn how to provide the "cloud".CloudsLinks: https://www.zhihu.com/question/30878548/answer/121149629Source: Know the JSON to be sent as a string into the body
Four ways to use the HTTP protocol to pass parameters to a server
URL path carrying parameters, shaped like/weather/beijing/2018;
Query string, shaped like key1=value1&key2=value2;
The data sent in the request body (body), such as
There are two ways of submitting data to the server, post and get. The difference between the two is mainly three points, security, length limit, data structure. Where GET request security is relatively poor, the data length is limited by the
This article describes how to use java to obtain the signature. if you are interested, refer to this article for details about how to use java to obtain the signature, for more information, see
I. Preface
Three parameters noncestr, timestamp, and
Three POST and GET submission methods: postget submission
There are two ways to submit data to the server: post and get. There are three main differences between the two: security, length restrictions, and data structure. The get request is less
Good articles... Inniu ~ (Partition _ tables)
Http://www.cnblogs.com/skynet/archive/2010/05/18/1738301.html
Introduction
I think anyone who is familiar with the HTTP protocol can give a reason. But if I ask you what HTTP request methods are
Reprinted from: http://www.cnblogs.com/liwenzhou/articles/8305104.htmlDjango View (view)A view function (class), referred to as a view, is a simple Python function (class) that accepts a Web request and returns a Web response.The response can be a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.