客户端(如Web浏览器或我们的CheckUpDown机器人)可以显示到Web服务器的特点,它的数据将接受从Web服务器。 This is done using 'accept headers' of the following types:这样做是使用'接受头'以下类型:
Accept: The MIME types accepted by the client.接受:该MIME类型的客户所接受。 For example, a browser may only accept back types of data (HTML files, GIF files etc.) it knows how to process.例如,浏览器可能只接受返回的
数据类型(
HTML文件, GIF文件等) ,它知道如何处理。
Accept-Charset: The character sets accepted by the client.可接受字符:
字符集的客户所接受。
Accept-Encoding: The data encoding accepted by the client eg the file formats it understands.接受编码:数据编码的客户所接受的
文件格式,例如它的理解。
Accept-Language: The natural languages (English, German etc.) accepted by the client.接受语言:自然语言(英语,德语等)的客户所接受。
Accept-Ranges: Whether the client accepts ranges of bytes from the resource ie a portion of the resource.可接受范围:客户端是否接受范围的字节即从资源的部分资源。
If the Web server detects that the data it wants to return is not acceptable to the client, it returns a header containing the 406 error code.如果Web服务器检测到的数据,希望是不能接受的返回到客户端,它返回一个标题含有406错误代码。
406 errors in the HTTP cycle 406错误的HTTP周期
Any client (eg your Web browser or our CheckUpDown robot) goes through the following cycle:任何客户端(如Web浏览器或我们的CheckUpDown机器人)经过以下周期:
Obtain an IP address from the IP name of your site (your site URL without the leading 'http://').获取
IP地址的IP名称您的网站(您的网站URL的领导' http:// ' ) 。 This lookup (conversion of IP name to IP address) is provided by
domain name servers (DNSs).这查找(转换的知识产权名称, IP地址)所提供的
域名服务器( DNSs ) 。
Open an IP socket connection to that IP address.打开一个IP
套接字连接到该IP地址。
Write an HTTP
data stream through that socket.写一个HTTP
数据流通过该插座。
Receive an HTTP data stream back from your Web server in response.收到一个HTTP数据流从您的Web服务器的响应。 This data stream contains status codes whose values are determined by the HTTP protocol.此数据流包含状态码的值是由
HTTP协议。 Parse this data stream for status codes and other useful information.剖析这一数据流的状态码和其他有用信息。
This error occurs in the final step above when the client receives an HTTP status code that it recognises as '406'.这个错误发生在最后一步时,上述用户端收到一个
HTTP状态码,它认识到作为'406 ' 。
Resolving 406 errors - general 解决406错误-一般
This error occurs very infrequently in Web browsers, because most browsers will accept any data returned from your Web server.发生此错误很少在Web浏览器,因为大多数的浏览器会接受任何数据传回您的Web服务器。
If the client is not a Web browser, then anyone can only investigate the problem by looking at the Accept headers generated by the client system and the data stream returned by the Web server.如果客户端不是一个Web浏览器,那么任何人都可以探讨的问题只有通过着眼于接受头所产生的客户端系统和数据流所传回Web服务器。 If you do not have access to the source code for these systems, the only thing you can do is refer the problem to technical support people at the companies that developed the systems.如果你没有获得的
源代码,这些系统中,只有你能做到的是提到的问题的
技术支持的人的公司,开发了系统。
Resolving 406 errors - CheckUpDown 解决406错误- CheckUpDown
This error should simply never occur in your CheckUpDown account.这个错误应该只是永远不会发生在您的CheckUpDown帐户。 If it does, it typically indicates defective programming of our systems or of the Web server which manages your site.如果这样做,通常表明有缺陷的节目,我们的系统或Web服务器管理您的网站。 We do not use accept headers at all, so there is no reason for your Web server to generate a 406 error.我们不使用标题在所有接受,所以没有理由您的Web服务器生成一个406错误。
Please contact us (email preferred) whenever you encounter 406 errors - there is nothing you can do to sort them out.请与我们联系(
电子邮件首选)每当你遇到406错误-没有任何你可以做排序出来。 We then have to liaise with your ISP and the vendor of your Web server software to agree the exact reason for the error.然后,我们有保持联络,与您的ISP供应商和您的Web服务器软件,同意的确切原因的错误。