IE的自带下载功能中没有断点续传功能,要实现断点续传功能,需要用到HTTP协议中鲜为人知的几个响应头和请求头。一. 两个必要响应头Accept-Ranges、ETag 客户端每次提交下载请求时,服务端都要添加这两个响应头,以保证客户端和服务端将此下载识别为可以断点续传的下载:Accept-Range...
分类:
Web程序 时间:
2014-07-10 13:18:57
阅读次数:
321
因为 Internet Explorer 和 Firefox 发送了不同的 Accept 头,所以 web API 在响应里就发送了不同的内容类型。 解决方法,在 Global.asax的 Application_Start() 加入下面的代码 GlobalConfiguration.Configu...
accept()函数 系统调用 accept() 会有点古怪的地方的! 你能够想象发生 这种事情:有人从非常远的地方通过一个你在侦听 (listen()) 的port连接 (connect()) 到你的机器。它的连接将添?到等待接受 (accept()) 的队列 中。 你调用 accep...
分类:
其他好文 时间:
2014-07-06 14:27:49
阅读次数:
182
关于Http 的method:GETAsks to get the thing (resource / file) at the requested URL.POSTAsks the server to accept the body info attached to the request, an...
分类:
其他好文 时间:
2014-07-02 23:42:07
阅读次数:
215
压缩浏览器使用Accept-Encoding头来生命它支持压缩。服务器使用content-Encoding头确认响应已被压缩。持久连接request: Connection:keep-aliveresponse: Connection:keep-alive图片优化1.使用图片地图,将多个图片整合到一...
分类:
Web程序 时间:
2014-07-02 00:34:28
阅读次数:
290
#> /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT # 开放80端口了
分类:
系统相关 时间:
2014-07-01 22:28:10
阅读次数:
355
一,配置一个filter表放火墙(1)查看本机关于IPTABLES的设置情况[root@tp ~]# iptables -L -nChain INPUT (policy ACCEPT)target prot opt source destinationChain FORWARD (policy AC...
分类:
其他好文 时间:
2014-07-01 12:53:14
阅读次数:
593
知乎用户,IT行业从业者 崔Vincent、知乎用户 赞同 现在手机浏览器的标准也不一样,各有各的浏览器,一般是HTTP_ACCEPT这个服务器变量中如果包含如下几个字符串,就可以判断是手机 text/vnd.wap.wml application/vnd.wap.xhtml+xml 有个特殊例子就...
分类:
移动开发 时间:
2014-06-25 14:53:09
阅读次数:
208
1、把相关软件包全部下载到本地机器
wget -np -nH –cut-dirs=1 -r -c -L –exclude-directories=repodata –accept=rpm,gz,xml http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/epel-6/ -P /opt/epel6
wge...
分类:
其他好文 时间:
2014-06-22 21:06:16
阅读次数:
557
??
启动Tomcat之后出现全是英文错误:
ORACLE DATABASE 10g EXPRESS EDITION LICENSE AGREEMENT
To use this license, you must agree to all of the following terms (by either clicking the accept button or installing an...
分类:
数据库 时间:
2014-06-22 15:48:26
阅读次数:
608