从理论上来说(因为我自己没做过),您可以通过比较作为HTTP请求的一部分发送的 HTTP头信息来防止遭到黑客攻击。
Theoretically (since I've not done this myself), you could guard against hackers by comparing HTTP header information that is sent as part of the HTTP request.
幸运的是,HTTP协议通过Accept - Language请求头将本地化信息从浏览器传递至服务器。
Fortunately, the HTTP protocol includes provisions for relaying localization information from the browser to the server by means of the Accept-Language request header.
支持服务浏览器(DescribeService头信息)请求。
然而,每个请求和响应载体会有许多不必要的HTTP头信息开销和延迟。
However, each request and response carries with it lots of unnecessary HTTP header overhead and latency.
另一面在于,与普通页面请求相反,门户不为响应提供任何缺省标头信息;所有信息都必须在资源服务过程中显式地进行设置。
The flip side is that, in contrast to normal page requests, the portal does not provide any default header information for the response; all information must be explicitly set during resource serving.
网络应用可以通过接收语言请求的头信息或者别的方法来获得这个信息。
Web applications can get this through the Accept-Language request header, though other ways are often used, too.
头信息用于传送控制信息,主体包含实际请求或响应消息内容。
The header is used to pass control information, and the body contains the actual request or response message content.
此外,要使资源请求可缓存,您需要在响应上显式设置缓存控制信息,以便门户能够生成缓存标头。
Also, to make a resource request cacheable, you need to explicitly set the cache control information on the response so that the portal can generate caching headers.
头信息正是你期望的那样:特定于请求的值,可以对其访问以获取更多的元数据。
Headers are just what you'd expect them to be: values specific to the request that can be interrogated for extra meta data.
头信息以之前请求中的意义相同。
The meaning of the headers is the same as for the first request.
User-Agent请求标头字段包含有关发出该请求的用户代理的信息。
The User-Agent request-header field contains information about the user agent originating the request.
如果你的内容经常改变,但是不是每次页面请求都改变,考虑设置一个Cache - Control: max -age头信息;大部分用户会在短时间内多次访问同一页面。
If your content changes often, but not on every page hit, consider setting a Cache-Control: max-age header; most users access pages again in a relatively short period of time.
在这种情况下,来自浏览器的HTTP请求头字段表明此浏览器可以接收编码信息。
In this case, the HTTP request header fields sent from the browser indicate that the browser is capable of receiving encoded information. When the Web server receives this request, it can.
你不能通过请求发送信息头。
你不能通过请求发送信息头。
应用推荐