posts - 13,  comments - 4,  trackbacks - 0
Linux环境VNC服务安装、配置与使用http://blog.chinaunix.net/space.php?uid=57865&do=blog&cuid=1982905

UNIX 系统
http://www.linuxsir.org/bbs/showthread.php?s=c5e7da060762ad290ad8d2bd26bac6e0&t=195579

CDE问题的troubleshooting http://blog.chinaunix.net/space.php?uid=9816449&do=blog&cuid=80800

HP-UX 11i下安装VNC  http://www.chinaunix.net/jh/8/576126.html

ORA-01207: old control file完全解决方案    
http://bbs.chinaunix.net/thread-2070372-1-1.html
posted @ 2011-08-29 17:09 身在半空 阅读(276) | 评论 (0)编辑 收藏

WebLogic9.2拒绝访问的异常分析及解决方案
之前分析不对,特此改正

一、 故障概述

近三个月来,已有3次发生业务自动开通系统执行平台维护系统访问异常,所有页面拒绝访问并提示:

Connection rejected, the server is in the RUNNING state. Starting service weblogic.application.internal.BackgroundDeploymentService$WaitForBackgroundCompletion, 110 of 112. Last service weblogic.deploy.service.internal.adminserver.HeartbeatService took 2ms.

多点施工管理平台维护系统同时出现上述问题,部署这两个维护系统的WebLogic服务器服务异常。

该故障使工单查询、系统监控、失败工单转移和受理等功能无法使用。对业务工单的自动执行无影响,所有执行服务器正常。

每次均是采用强制停止服务后重启的方式恢复服务。

二、 故障描述

访问业务自动开通系统执行平台维护系统和多点施工管理平台维护系统均报以下异常:

Connection rejected, the server is in the RUNNING state. Starting service weblogic.application.internal.BackgroundDeploymentService$WaitForBackgroundCompletion, 110 of 112. Last service weblogic.deploy.service.internal.adminserver.HeartbeatService took 2ms.

此时,网络状况、设备状态、服务器操作系统均正常;WebLogic应用服务器异常,其控制台无法正常访问,显示报告同业务自动开通系统执行平台维护系统,且不能正常停止WebLogic服务。

经查,WebLogic应用服务器在记录以下日志后无法正常访问:

####<2011-8-13 上午104615 CST> <Critical> <Server> <tfh-node2> <TFHWEB> <DynamicListenThread[Default]> <<WLS Kernel>> <> <> <1313203575118> <BEA-002616> <Failed to listen on channel "Default" on 132.60.5.29:8080, failure count: 2, failing for 1 seconds, java.net.SocketException: 无效的自变量>

####<2011-8-13 上午104659 CST> <Critical> <Server> <tfh-node2> <TFHWEB> <DynamicListenThread[Default]> <<WLS Kernel>> <> <> <1313203619270> <BEA-002617> <Attempting to close and reopen the server socket on on channel "Default" on 132.60.5.29:8080.>

####<2011-8-13 上午104709 CST> <Notice> <Server> <tfh-node2> <TFHWEB> <DynamicListenThread[Default]> <<WLS Kernel>> <> <> <1313203629287> <BEA-002614> <Reopening channel "Default" on 132.60.5.29:8080.>

####<2011-8-13 上午104709 CST> <Notice> <Server> <tfh-node2> <TFHWEB> <DynamicListenThread[Default]> <<WLS Kernel>> <> <> <1313203629787> <BEA-002615> <After having failed to listen, the server is now listening on channel "Default" on 132.60.5.29:8080.>

之后所有访问均记录如下日志:

####<2011-8-13 上午104709 CST> <Notice> <Server> <tfh-node2> <TFHWEB> <DynamicListenThread[Default]> <<WLS Kernel>> <> <> <1313203629787> <BEA-002615> <After having failed to listen, the server is now listening on channel "Default" on 132.60.5.29:8080.>

 

三、 处理过程和解决方法

使用正常停止WebLogic服务的命令无法停止服务,强行killWebLogic服务进程,并按照正常流程启动WebLogic服务

    故障分析和建议

1、故障的原因分析

此故障是由WebLogic9.2bug导致,Oracle官方解释如下:

Solaris 9 或更高版本上使用 JDK 1.5 时,半闭套接口上的任何设置操作都会引发 SocketException。这延迟了服务器在相同端口上接受新连接,而且如果故障间的最大补偿时间达到最大值,还会导致回收服务器套接口。

需要安装CR283953补丁解决该BUG

以下为Oracle官方对CR283953补丁的英文解释:

http://docs.oracle.com/cd/E13222_01/wls/docs100/issues/known_resolved.html

On Solaris 9 or later, with JDK 1.5, any set operation on a half-closed socket throws a SocketException. This delayed the server in accepting new connections on the same port and also caused the server socket to be recycled if the maximum backoff time between failures reaches its maximum.

Solution:

WebLogic Server no longer throws an exception in connection with a set operation on half-closed sockets.

 

2、改进措施和计划

1.WebLogic服务编写守护程序,定时查看WebLogic服务状态,若出现故障则重启WebLogic服务。守护程序采用crontab+shell脚本实现,参见

扫描日志重启WebLogic服务shell脚本

2.获取CR283953补丁,并安装。BEA已被oracle收购,补丁已不能免费下载,具体询oracle客服。

 

 

posted @ 2011-08-16 17:31 身在半空 阅读(3603) | 评论 (3)编辑 收藏
操作系统:Solaris
1.使用oracle用户进行定时备份,添加crontab时要用root用户添加,执行命令为:crontab -e oracle;
2.shell脚本中不能使用“()”,如
exp ywkt/ywkt@ywkt buffer=64000 file=/backup/config_$dd.dmp log=/backup/exp_config.log tables=(ACTIONTYPEIDLIST,RESOURCE_CONFIGURE)。会提示红色括号附件错误。

附个人感觉有用的链接:
http://space.itpub.net/4227/viewspace-68717
http://www.itpub.net/thread-92487-1-1.html
posted @ 2011-06-09 15:47 身在半空 阅读(550) | 评论 (0)编辑 收藏

说明:IbosExecHistory系列表是提供历史数据查询的历史表;

IbosExecHistory为试图;

IbosExecHistory_XXXX中“XXXX”为年份,供存放该年所有历史数据,此类表做历史数据备份用,不提供维护系统查询;

IbosExecHistory_month_X中“X”为月份(1-9不加0),此类表做循环使用,根据维护系统要求查询时提供6个月内数据,故在此前六个月之外的数据可清楚。最后及时清楚,否则将造成与往年数据共存现象,较难分离。若造成累计,建议将数据使用bcp导出后,对文件进行操作,不要在数据库中进行操作。

工作原理:为减少对数据库性能造成影响,使用bcptruncate table操作,做truncate table时应谨慎。

本文目的:提供IbosExecHistory_month_X表历史数据清除步骤。

注:以下步骤以20105月份历史数据清除为例,在实际操作中需更改重要sql语句,谨记。

具体步骤:

1.查询年份表中是否已有该月数据,结果为0,则顺序执行

select count(*) from IbosExecHistory_2010 where SendTime>='2010-05-01' and SendTime<'2010-06-01'

2.查询月份表中是否已清除,结果不为0,则顺序执行

select count(*) from IbosExecHistory_month_5

3.使用bcp命令进行数据导出,bcp命令OS命令,在已安装sybase数据库客户端的系统上方可使用

bcp test..IbosExecHistory_month_5 out d:\IbosExecHistory_month_5.txt -c -t "{" -r "\r\n" -Uibos -Pibos123 -Stfh28

4.使用bcp命令进行数据导入

bcp test..IbosExecHistory_2010 in d:\IbosExecHistory_month_5.txt -c -t "{" -r "\r\n" -Uibos -Pibos123 -Stfh28

5.清除月份表数据

truncate table IbosExecHistory_month_5

posted @ 2010-12-22 15:54 身在半空 阅读(278) | 评论 (0)编辑 收藏
     摘要: Oracle SQL Developer外观改为windows后启动异常的解决方法

删除我的文档下面的 \AppData\Roaming\SQL Developer文件夹即可。  阅读全文
posted @ 2010-06-24 11:01 身在半空 阅读(1586) | 评论 (0)编辑 收藏

引自:http://www.examda.com/linux/fudao/20090928/091946607.html

在Windows和Linux(Fedora/Ubuntu/RedHat)中安装了NetBeans后,会遇到菜单等显示乱码的 问题。这里告诉大家如何解决中文显示乱码的问题,包括Windows、Fedora、Ubuntu下NetBeans中文乱码解决办法。

一、Windows下NetBeans中文乱码解决办法

l              找到你的Netbeans安装目录下的etc文件夹

l              用记事本打开netbeans.conf

l              找到netbeans_default_options(不是最后那个带句号的…), 在其属性的最后(引号以内)加一个空格, 再加上-J-Dfile.encoding=UTF-8

二、Fedora   NetBeans中文乱码解决办法

l              拷贝/usr/share/fonts/zh_CN/TrueType中的ttf文件到你的JDK安装目录下 jre/lib/fonts/fallback里,如果在”java安装目录/jre/lib/fonts”下没有”fallback”这个目录, 可以手工创建一个,即可解决。

l              如果还不行的话,打开Netbeans的默认配置文件:我的在/home/www.dengchao.org/netbeans-6.5.1/etc /netbeans.conf。

l              找到netbeans_default_options这一项(注意不要在#后面,那个是注释)。

l              在最后加上:(空格)-J-Duser.language=zh -J-Duser.country=CNs -J-Dfile.encoding=UTF-8

三、Ubuntu NetBeans中文乱码解决办法

l              在$JAVA_HOME/jre/lib/fonts目录下创建一名为fallback的目录

l              将一可显示中文的字体放到fallback目录下,可以到Ubuntu字体目录(/usr/share/fonts)去复制一份或者用ln命令做一个硬链 接到该目录(注:软链接无效)

l              再运行NetBeans(or NetBean)即可

posted @ 2010-05-16 13:44 身在半空 阅读(1255) | 评论 (0)编辑 收藏
对于过滤流的关闭,一般采取先开后关、由外向内的原则。

FileInputStream f=new FileInputStream( "file ");
BufferedInputStream b=new BufferedInputStream(f);
DataInputStream d=new DataInputStream(b);

关闭”真正有意义的事情在于“释放系统资源”。在这个例子里,只有FileInputStream占据了系统资源(打开了一个文件),另外两个流对象只是从数据处理角度做的包装(可能会占用一些内存,但不占用其它“系统资源”)。所以,只需要确保关闭了FileInputStream即可。

在实际编程实践中,你不一定总能清楚地知道每层的流对象是否占据了系统资源,所以,最安全(也是最常规)的做法就是关闭最外层的那个对象。这种逐层包装的对象在实现上都会有一个特点,像“关闭”这种操作都会逐层向内调用。

引自:http://blog.sina.com.cn/s/blog_6307d85b0100gqtt.html
posted @ 2010-02-25 11:26 身在半空 阅读(1126) | 评论 (0)编辑 收藏
准备:
    Solaris系统运行过一段时间后,时间和标准时间有偏差,单机系统下,不与其他系统同步。
若要修改系统时间,得考虑一下系 统上的服务是否会由于修改了时间而服务起不来。
现网运行中有一台服务器,时间比标准时间快15分钟,由于应用的需要,要求时间要与标准时间相近, 服务器上系统是SunOS 5.8,数据库是IBM Informix Dynamic Server Version 9.40.FC7,一个实例,好几个库。
经过一番咨询,在不停止服务的情况下可以修改系统时间,用root用户登陆后修改。修改时间就用date 命令就性,格式为date mmddHHMMYYYY.SS,月日时分年.秒
下面是操作记录
 
 
操作:
 
 
SunOS 5.8
 
login: login: xxxuser
Password:
Last login: Tue Jan 16 18:27:47 from 10.2.0.221
Sun Microsystems Inc.   SunOS 5.8       Generic Patch   February 2004
You have new mail.
infodb% echo $TZ
PRC
infodb% onstat -
IBM Informix Dynamic Server Version 9.40.FC7     -- On-Line -- Up 40 days 01:02:36 -- 3920896 Kbytes
infodb% su - root
Password:
Sun Microsystems Inc.   SunOS 5.8       Generic Patch   February 2004
You have new mail.
Sourcing //.profile-EIS.....
root@infodb # id
uid=0(root) gid=1(other)
root@infodb # date               
Tue Jan 16 19:08:25 CST 2007
root@infodb # date 011618552007.10
Tue Jan 16 18:55:10 CST 2007
root@infodb # date
Tue Jan 16 18:55:13 CST 2007
root@infodb # date
Tue Jan 16 18:55:22 CST 2007
root@infodb # exit
infodb% onstat -
IBM Informix Dynamic Server Version 9.40.FC7     -- On-Line -- Up 40 days 00:55:31 -- 3920896 Kbytes
infodb% onstat -
IBM Informix Dynamic Server Version 9.40.FC7     -- On-Line -- Up 40 days 00:55:34 -- 3920896 Kbytes

转自:http://blog.chinaunix.net/u/20228/showart_233546.html
posted @ 2010-02-10 15:05 身在半空 阅读(588) | 评论 (0)编辑 收藏
public class Test2 {
public static void main(String[] args) throws Exception{
System.out.println(Test2.class.getProtectionDomain().getCodeSource().getLocation());// 获取程序的根目录
}
}
摘自:http://blog.sina.com.cn/s/blog_643937a30100gkrz.html
posted @ 2010-02-08 15:18 身在半空 阅读(1753) | 评论 (0)编辑 收藏
   我开发时使用的是jxl2.6.12版本的包,在NetBeans6.7上开发时运行良好(tomcat6.0服务器),在部署到weblogic9.2上时,报java.lang.NoClassDefFoundError: jxl/write/WriteException异常。
   经分析以为是weblogic内置jxl较低版本的包,后尝试上传最新jar包至common/lib下及创建weblogic.xml文件使其优先使用WEB-INF下包等两种解决方案时仍不能解决问题。
   之后在一次部署过程中发现weblogic报出:invalid LOC header (bad signature),经查得知是不识别jar包,随下载jxl2.6的包上传部署并通过。

现象:weblogic9.2报出java.lang.NoClassDefFoundError异常。
原因:weblogic9.2不识别jar包所致,具体深层原因不明,可参考http://www.zeali.net/entry/106。
解决:使用稍低版本jar包。或许同一版本其他包也可使用,为曾尝试。

附:weblogic.xml
<?xml version="1.0" encoding="GBK"?>
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
    <container-descriptor>
        <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
</weblogic-web-app>

posted @ 2010-01-12 14:29 身在半空 阅读(949) | 评论 (0)编辑 收藏

一、介绍(introduction)

1. 目的——HTTP/0.9-〉HTTP/1.0-〉HTTP/1.1

2. 要求——MUST、REQUIRED、SHOULD

3. 术语——连接(Connection)、消息(Message)、请求(Request)、应答(Response)、资源(Resource)、实体 (Entity)、表示方法(Representation)、内容协商(Content Negotiation)、变量(Variant)、客户机(Client)、用户代理(User agent)、服务器(Server)、原服务器(Origin server)、代理服务器( Proxy)、网关(gateway)、高速缓存(Cache)、可缓存(Cacheable)、直接(first-hand)、明确终止时间 (explicit expiration time)、探索终止时间(heuristic expiration time)、年龄(Age)、保鲜寿命(Freshness lifetime)、保鲜(Fresh)、陈旧(Stale)、语义透明(semantically transparent)、有效性判别器(Validator)、实体标记(entity tag)或最终更改时间(Last-Modified time))、上游/下游(upstream/downstream)、向内/向外(inbound/outbound)

4. 总体操作——请求/应答、中介

二、符号惯例与一般语法(notational conversions and generic grammar)

1. 扩充BNF——name = definition,"literal",rule1 | rule2,(rule1 rule2),*rule,[rule],N rule, #rule,; comment, implied *LWS

2. 基本规则——OCTET,CHAR,UPALPHA,LOALPHA,ALPHA,DIGIT,CTL,CR,LF,SP,HT,<">

三、协议参数(protocol parameters)

1. HTTP版本——HTTP-Version = "HTTP" "/" 1*DIGIT "." 1*DIGIT

2. 统一资源标示符(URI)——统一资源定位器(URL)和统一资源名称(URN)的结合,http_URL = "http:" "//" host [ ":" port ] [ abs_path [ "?" query ]]

3. 日期/时间格式——Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123,
Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036,
Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format

4. 字符集——本文档中的术语"字符集"指一种用一个或更多表格将一个八字节序列转换成一个字符序列的方法,
charset=token
失踪字符集

5. 内容编码——内容编码主要用来允许文档压缩(信源编码)
content-coding= token
注册表包含下列标记:gzip,compress,deflate,identity

6. 传输编码——目的是能够确保通过网络安全传输(信道编码)
transfer-coding = "chunked" | transfer-extension
transfer-extension = token *( ";" parameter ),
成块传输代码

7. 媒体类型——media-type = type "/" subtype *( ";" parameter )
type = token
subtype = token
规范化和原文缺省
多部分类型

8. 产品标记——product = token ["/" product-version]
product-version = token

9. 质量值——qvalue = ( "0" [ "." 0*3DIGIT ] )| ( "1" [ "." 0*3("0") ] )

10. 语言标记——language-tag = primary-tag *( "-" subtag )
primary-tag = 1*8ALPHA
subtag = 1*8ALPHA

11. 实体标记——entity-tag = [ weak ] opaque-tag
weak = "W/"
opaque-tag = quoted-string

12. 范围单位——range-unit = bytes-unit | other-range-unit
bytes-unit = "bytes"
other-range-unit = token

四、 HTTP消息(HTTP message)

1. 消息类型——HTTP-message = Request | Response ; HTTP/1.1 messages
generic-message = start-line *(message-header CRLF) CRLF [ message-body ]
start-line = Request-Line | Status-Line

2. 消息头——HTTP头域包括常规头,请求头,应答头和实体头域
message-header = field-name ":" [ field-value ]
field-name = token
field-value = *( field-content | LWS )
field-content = <the OCTETs making up the field-value and consisting of either *TEXT or combinations of token, separators, and quoted-string>

3. 消息体——message-body = entity-body| <entity-body encoded as per Transfer-Encoding>

4. 消息的长度——决定因素

5. 常规头域——general-header = Cache-Control| Connection| Date| Pragma| Transfer-Encoding

五、 请求(request)

首行包括利用资源的方式,区分资源的标识,以及协议的版本号
Request = Request-Line * (( general-header| request-header| entity-header ) CRLF) CRLF [ message-body ]

1. 请求行——Request-Line = Method SP Request-URI SP HTTP-Version CRLF
方法——方法标记指的是在请求URI所指定的资源上所实现的方式
Method = "OPTIONS"| "GET"| "POST"| "PUT"| "DELETE"| "TRACE"| "CONNECT"| extension-method
extension-method = token
请求URL——请求URL是一种全球统一的应用于资源请求的资源标识符
Request-URI = "*" | absoluteURI | abs_path | authority
请求行举例:GET http://www.w3.org/pub/WWW/TheProject.html HTTP/1.1
GET /pub/WWW/TheProject.html HTTP/1.1
Host: www.w3.org

2. 请求定义的资源——一个INTERNET请求所定义的精确资源由请求URL和主机报头域所决定

3. 请求报头域——request-header = Accept| Accept-Charset| Accept-Encoding| Accept-Language| Authorization| Expect| From| Host| If-Match| If-Modified-Since| If-None-Match| If-Range| If-Unmodified-Since| Max-Forwards| Proxy-Authorization| Range| Referer| TE| User-Agent

六、 应答(response)

接收和翻译一个请求信息后,服务器发出一个HTTP应答信息
Response = Status-Line*(( general-header| response-header| entity-header ) CRLF) CRLF [ message-body ]

1. 状态行——Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF
状态码——状态码是试图理解和满足请求的三位数字的整数码,1xx,2xx,3xx,4xx,5xx,100-〉505-〉扩展码

2. 应答报头域——response-header = Accept-Ranges| Age| Location| Proxy-Authenticate| Retry-After| Server| Vary| WWW-Authenticate

七、 实体(entity)

在未经特别规定的情况下,请求与应答的消息也可以传送实体。 实体包括实体报头域与实体正文,而有些应答只包括实体报头。

1. 实体报头域——entity-header = Allow | Content-Encoding| Content-Language| Content-Length | Content-Location| Content-MD5| Content-Range| Content-Type| Expires| Last-Modified| extension-header
extension-header = message-header

2. 实体正文——entity-body = *OCTET
entity-body := Content-Encoding( Content-Type( data ) )

八、 连接(connection)

1. 持续连接——优点
持续连接是任何HTTP连接的缺省方式,支持持续连接的客户机可以以流水线方式发送请求
代理服务器

2. 消息传递要求——持续连接与流量控制
监视连接中出错状态的消息
100号状态的用途
服务器过早关闭连接时客户机的动作

九、 方法定义(method definitions)

1. 安全和等幂方法
安全方法——GET和HEAD方法除了补救外不应该有别的采取措施的含义
等幂方法——没有副作用的序列是等幂的

2. OPTIONS——OPTIONS方法代表在请求URI确定的请求/应答过程中通信条件是否可行的信息

3. GET——GET方法说明了重建信息的内容由请求URI来确定

4. HEAD——除了应答中禁止返回消息正文外,HEAD方法与GET方法一样

5. POST——POST方法实现的实际功能取决于服务器

6. PUT——PUT方法要求所附实体存储在提供的请求URI下

7. DELETE——DELELE方法要求原服务器释放请求URI指向的资源

8. TRACE——TRACE方法用于调用远程的应用层循环请求消息

9. CONNECT——CONNECT方法用于能动态建立起隧道的代理服务器

十、 状态码定义(status code definitions)

1. 信息1XX——
100继续
101转换协议

2. 成功2XX——
200请求成功
201创建
202接受
203非权威信息
204无内容
205重置内容
206局部内容

3. 重新定向3XX——
300多样选择
301永久移动
302创立
303观察别的部分
304只读
306(没有用的)
307临时重发

4. 客户错误4xx——
400坏请求
401未授权的
402必需的支付
403禁用
404没有找到
405不被允许的方法
406不接受
407代理服务器认证所必需
408请求超时
409冲突
410停止
411必需的长度
412预处理失败
413请求实体太大
414请求的URI过长
415不被支持的媒体类型
416请求范围不满足
417期望失败

5. 服务器错误5xx——
500服务器内部错误
501不能实现
502坏网关
503难以获得的服务
504网关超时
505 HTTP版本不支持

十一、 访问验证(access authentication)——可选择

十二、 内容谈判(content negotiation)

HTTP为了"内容谈判"提供了一些机制,即当有很多种可能的表示时如何选择对于一个请求的最佳的表示。

1. 服务器驱动谈判——一个请求的最佳表示的选择由服务器提供的运算法则来完成

2. 代理驱动谈判——对于一个应答的最佳表示法的选择是在代理从原服务器端收到最初的应答后实现的

3. 透明谈判——透明的判断是服务器驱动和代理驱动谈判的结合体

十三、 HTTP中的缓存(caching in HTTP)

HTTP典型应用于能通过采用缓存技术而提高性能的分布式信息系统

1. 缓存——
缓存正确性
警告信息
缓存控制机制
直接的用户代理警告
规则和警告的例外情况
由客户控制的行为

2. 过期模型——
服务器指定模型
启发式过期
年龄计算
过期计算
澄清过期值
澄清多重响应

3. 确认模型——当缓存器想要用一个失时效的条目来相应客户的请求,他首先必须向源服务器检验这一缓存条目是否仍然可用
最后修改日期
标签缓存确认器
强弱控制器
关于何时使用实体标签和最后修改时间的规则
不确认条件

4. 响应的缓存能力——除非被明确限制,缓存系统可以将一成功的响应作为缓存实体一直存储

5. 从缓存构造响应——
端到端和Hop-by-hop报头
不可更改报头
联合报头
联合字节范围

6. 缓存谈判响应

7. 共享与非共享缓存

8. 错误和不完全响应缓存行为

9. GET和 HEAD的副作用

10. 刷新或删除后的无效性

11. 强制写通过

12. 缓存替换

13. 历史纪录

十四、 报头域定义(header field definitions)

1. Accept——Accept = "Accept" ":" #( media-range [ accept-params ] )
media-range = ( "*/*"| ( type "/" "*" )| ( type "/" subtype )) *( ";" parameter )
accept-params = ";" "q" "=" qvalue *( accept-extension )
accept-extension = ";" token [ "=" ( token | quoted-string ) ]
例1:Accept: audio/*; q=0.2, audio/basic
例2:Accept: text/plain; q=0.5, text/html, text/x-dvi; q=0.8, text/x-c

2. Accept-Charset——Accept-Charset = "Accept-Charset" ":" 1#( ( charset | "*" )[ ";" "q" "=" qvalue ] )
例:Accept-Charset: iso-8859-5, unicode-1-1;q=0.8

3. Accept-Encoding——Accept-Encoding = "Accept-Encoding" ":" 1#( codings [ ";" "q" "=" qvalue ] )
codings = ( content-coding | "*" )
例:Accept-Encoding: gzip;q=1.0, identity; q=0.5, *;q=0

4. Accept-Language——Accept-Language = "Accept-Language" ":" 1#( language-range [ ";" "q" "=" qvalue ] )
language-range = ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" )
例:Accept-Language: da, en-gb;q=0.8, en;q=0.7

5. Accept-Range——Accept-Ranges = "Accept-Ranges" ":" acceptable-ranges
acceptable-ranges = 1#range-unit | "none"
例:Accept-Ranges: bytes

6. Age——Age = "Age" ":" age-value
age-value = delta-seconds

7. Allow——Allow = "Allow" ":" #Method
例:Allow: GET, HEAD, PUT

8. Authorization——Authorization = "Authorization" ":" credentials

9. Cache-Control——Cache-Control = "Cache-Control" ":" 1#cache-directive
cache-directive = cache-request-directive| cache-response-directive
cache-request-directive ="no-cache"| "no-store"| "max-age" "=" delta-seconds| "max-stale" [ "=" delta-seconds ]| "min-fresh" "=" delta-seconds| "no-transform"| "only-if-cached"| cache-extension
cache-response-directive ="public"| "private" [ "=" <"> 1#field-name <"> ]| "no-cache" [ "=" <"> 1#field-name <"> ]| "no-store"| "no-transform"| "must-revalidate"| "proxy-revalidate"| "max-age" "=" delta-seconds| "s-maxage" "=" delta-seconds| cache-extension
cache-extension = token [ "=" ( token | quoted-string ) ]
什么是可缓存的
哪些可能被缓存保存
对基本过期失效机制的改进
缓存重新确认有效和重载控制
不得转换的指令
缓存控制扩展

10. Connection——Connection = "Connection" ":" 1#(connection-token)
connection-token = token
例:Connection: close

11. Content-Encoding——Content-Encoding = "Content-Encoding" ":" 1#content-coding
例:Content-Encoding: gzip

12. Content-Language——Content-Language = "Content-Language" ":" 1#language-tag
例:Content-Language: mi, en

13. Content-Length——Content-Length = "Content-Length" ":" 1*DIGIT
Content-Length: 3495

14. Content-Location——Content-Location = "Content-Location" ":"( absoluteURI | relativeURI )

15. Content-MD5——Content-MD5 = "Content-MD5" ":" md5-digest
md5-digest = <base64 of 128 bit MD5 digest as per RFC 1864>

16. Content-Range——Content-Range = "Content-Range" ":" content-range-spec
content-range-spec = byte-content-range-spec
byte-content-range-spec = bytes-unit SP byte-range-resp-spec "/"( instance-length | "*" )
byte-range-resp-spec = (first-byte-pos "-" last-byte-pos) | "*"
instance-length = 1*DIGIT
例:The first 500 bytes:bytes 0-499/1234

17. Content-Type——Content-Type = "Content-Type" ":" media-type
例:Content-Type: text/html; charset=ISO-8859-4

18. Date——Date = "Date" ":" HTTP-date
例:Date: Tue, 15 Nov 1994 08:12:31 GMT
没有时钟的原服务器的运作

19. Etag——ETag = "ETag" ":" entity-tag
例:ETag: W/"xyzzy"

20. Expect——Expect = "Expect" ":" 1#expectation
expectation = "100-continue" | expectation-extension
expectation-extension = token [ "=" ( token | quoted-string )*expect-params ]
expect-params = ";" token [ "=" ( token | quoted-string ) ]

21. Expires——Expires = "Expires" ":" HTTP-date
例:Expires: Thu, 01 Dec 1994 16:00:00 GMT

22. From——From = "From" ":" mailbox
例:From: webmaster@w3.org

23. Host——Host = "Host" ":" host [ ":" port ] ; Section 3.2.2

24. If-Match——If-Match = "If-Match" ":" ( "*" | 1#entity-tag )
例:If-Match: "xyzzy", "r2d2xxxx", "c3piozzzz"

25. If-Modified-Since——If-Modified-Since = "If-Modified-Since" ":" HTTP-date
例:If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT

26. If-None-Match ——If-None-Match = "If-None-Match" ":" ( "*" | 1#entity-tag )
例:If-None-Match: W/"xyzzy", W/"r2d2xxxx", W/"c3piozzzz"

27. If-Range ——If-Range = "If-Range" ":" ( entity-tag | HTTP-date )

28. If-Unmodified-Since ——If-Unmodified-Since = "If-Unmodified-Since" ":" HTTP-date
例:If-Unmodified-Since: Sat, 29 Oct 1994 19:43:31 GMT

29. Last-Modified ——Last-Modified = "Last-Modified" ":" HTTP-date
例:Last-Modified: Tue, 15 Nov 1994 12:45:26 GMT

30. Location ——Location = "Location" ":" absoluteURI
Location: http://www.w3.org/pub/WWW/People.html

31. Max-Forwards ——Max-Forwards = "Max-Forwards" ":" 1*DIGIT

32. Pragma ——Pragma = "Pragma" ":" 1#pragma-directive
pragma-directive = "no-cache" | extension-pragma
extension-pragma = token [ "=" ( token | quoted-string ) ]

33. Proxy-Authenticate ——Proxy-Authenticate = "Proxy-Authenticate" ":" 1#challenge

34. Proxy-Authorization ——Proxy-Authorization = "Proxy-Authorization" ":" credentials

35. Range——字节范围
范围检索请求
Range = "Range" ":" ranges-specifier

36. Referer——Referer = "Referer" ":" ( absoluteURI | relativeURI )

37. Retry-After ——Retry-After = "Retry-After" ":" ( HTTP-date | delta-seconds )

38. Server ——Server = "Server" ":" 1*( product | comment )

39. TE ——TE = "TE" ":" #( t-codings )
t-codings = "trailers" | ( transfer-extension [ accept-params ] )
例:TE: trailers, deflate;q=0.5

40. Trailer ——Trailer = "Trailer" ":" 1#field-name

41. Transfer-Encoding ——Transfer-Encoding = "Transfer-Encoding" ":" 1#transfer-coding
例:Transfer-Encoding: chunked

42. Upgrade——Upgrade = "Upgrade" ":" 1#product
例:Upgrade: HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11

43. User-Agent ——User-Agent = "User-Agent" ":" 1*( product | comment )
例:User-Agent: CERN-LineMode/2.15 libwww/2.17b3

44. Vary ——Vary = "Vary" ":" ( "*" | 1#field-name )

45. Via ——Via = "Via" ":" 1#( received-protocol received-by [ comment ] )
received-protocol = [ protocol-name "/" ] protocol-version
protocol-name = token
protocol-version = token
received-by = ( host [ ":" port ] ) | pseudonym
pseudonym = token
例:Via: 1.0 ricky, 1.1 ethel, 1.1 fred, 1.0 lucy

46. Warning = "Warning" ":" 1#warning-value
warning-value = warn-code SP warn-agent SP warn-text [SP warn-date]
warn-code = 3DIGIT
warn-agent = ( host [ ":" port ] ) | pseudonym
warn-text = quoted-string
warn-date = <"> HTTP-date <">

47. WWW-Authenticate ——WWW-Authenticate = "WWW-Authenticate" ":" 1#challenge

十五、 安全考虑(security considerations)

一些建议,但是并不包括最终解决方案

1. 个人信息
服务器日志信息的滥用
敏感信息的传输
URI中敏感信息的编码
连接到Accept报头的机要问题

2. 基于文件和路径名称的攻击

3. DNS欺骗

4. Location(位置)报头和欺骗

5. 内容倾向问题

6. 鉴定证书和空闲的客户机

7. 代理服务器和高速缓存
对代理服务器的拒绝服务攻击

十六、 感谢

十七、 参考文献

十八、 作者地址

十九、 附录


文章转自:http://www.cppblog.com/woaidongmao/archive/2008/05/28/51408.html

posted @ 2009-11-30 23:31 身在半空 阅读(4607) | 评论 (0)编辑 收藏

<2009年11月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

常用链接

留言簿

随笔档案

文章档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜