What is the information often used by HTTP headers in CGI programs?
This article mainly introduces the relevant knowledge of "what is the information often used in the HTTP header in the CGI program". The editor shows you the operation process through an actual case, and the operation method is simple, fast and practical. I hope that this article "what information is often used in the HTTP header in the CGI program" can help you solve the problem.
HTTP header
The "Content-type:text/html" in the contents of the hello.py file is part of the HTTP header, which is sent to the browser to tell the browser the content type of the file.
The format of the HTTP header is as follows:
HTTP field name: field content
For example:
Content-type: text/html
The following table describes the information commonly used by HTTP headers in CGI programs:
The header describes the Content-type: the requested MIME information corresponding to the entity. For example: Content-type:text/htmlExpires: Date response expiration date and time Location: URL is used to redirect the receiver to the non-request URL location to complete the request or identify the new resource Last-modified: Date request resource last modification time Content-length: n request content length Set-Cookie: String setting Http Cookie about "what is the information commonly used in HTTP headers in CGI programs" is introduced here, thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.