<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>寂静的深海 &#187; header</title>
	<atom:link href="http://www.deepseath.com/?feed=rss2&#038;tag=header" rel="self" type="application/rss+xml" />
	<link>http://www.deepseath.com</link>
	<description></description>
	<lastBuildDate>Mon, 29 Jan 2024 09:55:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PHP发送header头404信息</title>
		<link>http://www.deepseath.com/?p=1018</link>
		<comments>http://www.deepseath.com/?p=1018#comments</comments>
		<pubDate>Sat, 12 Nov 2011 12:53:02 +0000</pubDate>
		<dc:creator>Deepseath</dc:creator>
				<category><![CDATA[实验室]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.deepseath.com/?p=1018</guid>
		<description><![CDATA[其实很简单，直接上代码再解释。 if ( stripos(php_sapi_name(),'cgi') === 0 ) { @header('Status: 404 Not Found',true); } else { @header( (isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.1').' 404 Not Found'); } echo &#60;&#60;&#60;EOD &#60;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&#62; &#60;html&#62;&#60;head&#62; &#60;title&#62;404 Not Found&#60;/title&#62; &#60;/head&#62;&#60;body&#62; &#60;h1&#62;Not Found&#60;/h1&#62; &#60;p&#62;The requested URL was not found on this server.&#60;/p&#62; &#60;/body&#62;&#60;/html&#62; EOD; exit; 其实正常情况下只需要header(&#8216;HTTP/1.1 404 Not [...]]]></description>
		<wfw:commentRss>http://www.deepseath.com/?feed=rss2&#038;p=1018</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IIS的一个优化策略</title>
		<link>http://www.deepseath.com/?p=956</link>
		<comments>http://www.deepseath.com/?p=956#comments</comments>
		<pubDate>Sun, 18 Sep 2011 16:26:43 +0000</pubDate>
		<dc:creator>Deepseath</dc:creator>
				<category><![CDATA[日积月累]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.deepseath.com/?p=956</guid>
		<description><![CDATA[Win系统以IIS做web服务是首选，在Windows2003以后的IIS可以对每个站点设置不同的“应用程序池”，这样的好处是当某个站点当掉的时候不至于影响其他站点。 实际应用中，我比较主张将网站的静态文件存放于单独的一个站点，如果有条件的话，甚至为这个站点单独启用一个于主服务站点不同的域名（提高页面数据的并行下载能力），并将这个静态站点的执行权限全部关闭，因为是纯静态的数据不需要执行脚本。为其设置Header有效期。以及将ETag设置为空。这样下来，这个静态文件站点初具一些优化条件了。但还有一个地方需要注意，那就是它所使用的应用程序池，为这个站点单独设置一个应用程序池是肯定的，另外，因为这个站点不执行脚本，只是静态数据，因此也就不涉及到工作进程回收的问题了，这个时候将应用程序池设定内的“回收工作进程池”应该关闭，这样确保站点不会回收进程导致iis的意外发生。 这样做下来，这个静态文件站点应该相对效率就高一些了。]]></description>
		<wfw:commentRss>http://www.deepseath.com/?feed=rss2&#038;p=956</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP的Snoopy.class.php</title>
		<link>http://www.deepseath.com/?p=884</link>
		<comments>http://www.deepseath.com/?p=884#comments</comments>
		<pubDate>Wed, 17 Aug 2011 08:01:11 +0000</pubDate>
		<dc:creator>Deepseath</dc:creator>
				<category><![CDATA[程序人生]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[HTTP协议]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snoopy]]></category>
		<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://www.deepseath.com/?p=884</guid>
		<description><![CDATA[使用PHP读取HTTP页面基本使用Snoopy，使用简单方便易用。 最近在使用过程中发现一些问题，读取某些服务器的时候会发现获取不到页面内容。 留意Snoopy的Header请求头的时候发现，对于HOST请求是类似 HOST: hostname:port 看代码，只要端口存在，就使用该方式发送请求。 但观察浏览器请求时发现如果端口为80的时候，会省略掉端口号。 按这个方式改造一下Snoopy的代码，加入判断端口号，如果端口号为80的情况下，则直接使用 HOST: hostname 否则使用 HOST: hostname:port 这样改写代码后上面的问题就解决了。 问题的原因不太清楚，呵呵，对于HTTP协议始终就是模棱两可一知半解，实用至上主义，问题解决就不管了。 另外，还有一个问题就是，自官方下载到的Snoopy.class.php的编码问题，这个文件使用的是“阿拉伯语（Windows）”进行编码的，至少在这个编码下查看没有乱码。 为了方便日后改写代码，我是利用阿拉伯语（Windows）打开，然后Copy无乱码的代码另存为UTF-8编码，方便日后更改处理。]]></description>
		<wfw:commentRss>http://www.deepseath.com/?feed=rss2&#038;p=884</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS以及结构表现命名规则</title>
		<link>http://www.deepseath.com/?p=208</link>
		<comments>http://www.deepseath.com/?p=208#comments</comments>
		<pubDate>Tue, 24 Jun 2008 14:44:37 +0000</pubDate>
		<dc:creator>Deepseath</dc:creator>
				<category><![CDATA[日积月累]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[INT]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[vote]]></category>
		<category><![CDATA[服务]]></category>

		<guid isPermaLink="false">http://www.deepseath.com/?p=208</guid>
		<description><![CDATA[题外话：很多人遵循的东西就是规则了。所以就是这样的…… 页头：header 登录条：loginBar 标志：logo 侧栏：sideBar 广告：banner 导航：nav 子导航：subNav 菜单：menu 子菜单：subMenu 搜索：search 滚动：scroll 页面主体：main 内容：content 标签页：tab 文章列表：list 提示信息：msg 小技巧：tips 栏目标题：title 加入：joinus 指南：guild 服务：service 热点：hot 新闻：news 下载：download 注册：regsiter 状态：status 按钮：btn 投票：vote 合作伙伴：partner 友情链接：friendLink 页脚：footer 版权：copyRight 1.CSS ID 的命名 外　套：　　wrap 主导航：　　mainNav 子导航：　　subnav 页　脚：　　footer 整个页面：　content 页　眉：　　header 页　脚：　　footer 商　标：　　label 标　题：　　title 主导航：　　mainNav（globalNav） 顶导航：　　topnav 边导航：　　sidebar 左导航：　　leftsideBar 右导航：　　rightsideBar 旗　志：　　logo 标　语：　　banner 菜单内容1： menu1Content 菜单容量：　menuContainer [...]]]></description>
		<wfw:commentRss>http://www.deepseath.com/?feed=rss2&#038;p=208</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>浏览器 cookie 限制</title>
		<link>http://www.deepseath.com/?p=202</link>
		<comments>http://www.deepseath.com/?p=202#comments</comments>
		<pubDate>Tue, 10 Jun 2008 09:13:58 +0000</pubDate>
		<dc:creator>Deepseath</dc:creator>
				<category><![CDATA[日积月累]]></category>
		<category><![CDATA[cookie jar]]></category>
		<category><![CDATA[Explorer]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[internet explorer 8]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[recently]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[服务]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[浏览器]]></category>

		<guid isPermaLink="false">http://www.deepseath.com/?p=202</guid>
		<description><![CDATA[一、浏览器允许每个域名所包含的 cookie 数： Microsoft 指出 Internet Explorer 8 增加 cookie 限制为每个域名 50 个，但 IE7 似乎也允许每个域名 50 个 cookie（《Update to Internet Explorer’s Cookie Jar》）。 Firefox 每个域名 cookie 限制为 50 个。 Opera 每个域名 cookie 限制为 30 个。 Safari/WebKit 貌似没有 cookie 限制。但是如果 cookie 很多，则会使 header 大小超过服务器的处理的限制，会导致错误发生。 注：“每个域名 cookie 限制为 20 个”将不再正确！ 二、当很多的 cookie 被设置，浏览器如何去响应。除 Safari（可以设置全部cookie，不管数量多少），有两个方法： 最少最近使用（least recently used [...]]]></description>
		<wfw:commentRss>http://www.deepseath.com/?feed=rss2&#038;p=202</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
