以下是最新HTTP RFC 7230中的HTTP消息定义
HTTP-message = start-line
*( header-field CRLF )
CRLF
[ message-body ]
Run Code Online (Sandbox Code Playgroud)
下面是header-field的定义,
header-field = field-name ":" OWS field-value OWS
field-name = token
field-value = *( field-content / obs-fold )
field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
field-vchar = VCHAR / obs-text
obs-fold = CRLF 1*( SP / HTAB )
Run Code Online (Sandbox Code Playgroud)
..和:
obs-text = %x80-FF
Run Code Online (Sandbox Code Playgroud)
..和ABNF的:
VCHAR = %x21-7E
; visible (printing) characters
Run Code Online (Sandbox Code Playgroud)
正如我们所看到的,场值可以有多个障碍折叠,而障碍折叠有一个CRLF.我认为CRLF是标题行的结尾对我来说很奇怪.是否有一个例子表明多个CRLF被编码到一个标题字段中?或者,我是否误解了这个定义?
networking network-programming http network-protocols http-headers
我在这里检查了 ELF 规范http://www.cs.cmu.edu/afs/cs/academic/class/15213-f00/docs/elf.pdf但是,没有提到任何区别。
我用idea 2016创建了一个jsp项目,jsf的代码如下.
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html>
<head>
<title>JSP 2.0 Expression Language - Implicit Objects</title>
</head>
<body>
<h1>JSP 2.0 Expression Language - Implicit Objects</h1>
<hr>
This example illustrates some of the implicit objects available
in the Expression Language. The following implicit objects are
available (not all illustrated here):
<ul>
<li>pageContext - the PageContext object</li>
<li>pageScope - a Map that maps page-scoped attribute names to
their values</li>
<li>requestScope - a Map that maps request-scoped attribute names
to their values</li>
<li>sessionScope …Run Code Online (Sandbox Code Playgroud)