2003-06-08 �Ρ֥��ܥå��� meta ���� <meta name="robots" content="noindex,nofollow">�פǤ� html �� meta ���Ǥˤ����ܥå��Τߤ����ʤ��ä��Τǥ�⡣
- robots.txt ����
robots.txtUser-agent: *
Disallow: /
��ʸ����ʸ���ϴط��ʤ�������ʸ���� CRLF �Ǥ� LF �Ǥ�ɤ���Ǥ��ɤ���������ФΥ롼�Ȥ��֤���http://sonic64.com/ ���ä��� http://sonic64.com/robots.txt ����
squid.confg �˰ʲ����ɲä��롣squid/2.5.STABLE13 �ǤϤ���������إå��ν��Ϥ��������뤳�Ȥ��Ǥ�����
header_access X-Cache deny all
header_access X-Squid-Error deny all
Squid ���С����ץ������Ȥ��ƻ��Ѥ��Ƥ��ơ������Υ���ƥ�ĥ����ФΥۥ���̾�ʤɤ����饤����Ȥ��֤äƤ��ޤ��Τ��������˻Ȥ��롣�̤˾ä�ɬ�פ�ʤ����ʤ��Ȼפä����������ӥ���ľ�ܱƶ��Τʤ�����ϳ����˽Ф��ʤ��Τ����ܤ������Ȥꤢ�������ꤷ�Ƥ������Ȥˤ������Ǥ⡢����Ǥ��� X-Powered-By: ASP.NET �Ȥ� X-AspNet-Version: 2.0.50727 �ʤɤȤ��ä��إå���ʿ���ǽ��Ϥ��Ƥ��ꤹ�롣������Τʤ��䡣
* Accept-Encoding �� gzip ���դ��Ƥʤ����饤����Ȥ������쥯��
���ε�����ľ���URL: Permlink | ���ε�����°���륫�ƥ���: [Apache] [http] [sonic64.com]
�����ˤ��ȡ��Ƕᥢ��������¿���ä��褦�ǰ���20GB ��Ķ����ž���̤�³���Ƥ������͡���Ǥ���������ʸ����� RSS �Ǥ��� cl-full.xml ��ž���̤�90%�����Ƥ����������餯����Τ����Ǥ����饤���ͥåȤ�ž�������¤�Ķ���Ƥ��ޤ���503 �ȤʤäƤ����Τ�������
cl-full.xml �ϲ�����������ʸ����� 4MB ��Ķ���륵���������顢���������Τ�ž���̤������Ƥ�������ʤ����⤷��ʤ����ɡ�����ä�¿�����������롣���줫�����Ω�Ĥ��⤷��ʤ�����������Ƥ���ΤǤɤ�ɤ�ȤäƤ��äƹ���ʤ��Τ����������ȤΥ����ӥ���˸���ˤʤ�ΤϺ��롣�������ʤ��Τ����¤��뤳�Ȥˤ�����
- ���¤���
2005-09-15 �Ρ�mod_rewrite �ǥꥯ�����Ȥ˱����� gzip ���̥ե�������֤��פǤϡ�mod_gzip �� �Ȥ��ʤ��������ȤδĶ��Ǥ� Accept-Encoding: gzip �����äƤ��Ƥ��륯�饤����Ȥˤ� gzip ���̤����ǡ������֤��褦�ˤ���������Ϥ�������ʤ�ơ��ꥯ�����Ȥ��줿�ե����뤬 cl-full.xml �Ǥ��� Accept-Encoding: gzip ���ʤ���硢HTTP �쥹�ݥ����� 302 Moved Temporarily ���֤��ơ����������Х������٤ǥ������ξ����� cl.xml �إ�����쥯�Ȥ��롣�ꥯ�����Ȥ� Accept-Encoding: gzip ��������Ϻ��ޤ��̤� gzip ���̤��� cl-full.xml ���֤���
- Accept-Encoding �� gzip ���դ��Ƥʤ����饤����Ȥ������쥯�Ȥ��� mod_rewrite �� RewiteRule
ñ��˥�����쥯�Ȥ��Ƥ������RewriteEngine on
RewriteCond %{REQUEST_FILENAME} cl-full\.xml$
RewriteCond %{HTTP:Accept-Encoding} !gzip
RewriteRule .+ http://sonic64.com/cl.xml [L,R]
������쥯�Ȥ����� cl.xml ����Ȥ��֤��褦�ˤ��뤳�Ȥ�Ǥ��뤱�ɡ��ַ��Ϥ��ä��Υ���ƥ�Ĥ�ȤäƤ͡פȤ���������쥯�Ȥΰտޤ������ˤ����ΤǻȤ�ʤ����Ǥ⡢������ä��� Vary ���դ��������������ʤ���
- HTTP �ȥ����������ȤƳ�ǧ
2005-04-16 �ǽ���Live Http headers - HTTP �إå�ɽ���ġ���פ� HTTP �ȥ����������Ȥ�ɽ�����Ƴ�ǧ���롣�ʲ��Τ褦�ˡ� Accept-Encoding: gzip �Ĥ��ʤ餽�Τޤޥ����������ġ�
http://sonic64.com/cl-full.xml
GET /cl-full.xml HTTP/1.1
Host: sonic64.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja-JP; rv:1.7.12) Gecko/20050919 Firefox/1.0.7
Accept: text/xml,application/xml,application/xhtml+xml,text/html; q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: ja,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: Shift_JIS,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://sonic64.com/
Pragma: no-cache
Cache-Control: no-cache
HTTP/1.x 200 OK
Date: Mon, 20 Feb 2006 04:43:35 GMT
Server: Apache/1.3.34 (Unix)
Last-Modified: Mon, 20 Feb 2006 02:33:38 GMT
Etag: "339758-fab0f-43ebfb82"
Accept-Ranges: bytes
Content-Length: 1026831
Keep-Alive: timeout=3, max=8
Connection: Keep-Alive
Content-Type: application/xml
Content-Encoding: gzip
�ʲ��Τ褦�ˡ�Accept-Encoding �� gzip ���դ��Ƥʤ����饤����Ȥ� 302 ���֤��� cl.xml �إ�����쥯�ȡ�
�ޤ���Accept-Encoding �� gzip �ʤ��Υ��饤����Ȥ��ꥯ�����Ȥ��Ƥ���Ȥ��롣
GET /cl-full.xml HTTP/1.1
Host: sonic64.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja-JP; rv:1.7.12) Gecko/20050919 Firefox/1.0.7
Accept: text/xml,application/xml,application/xhtml+xml,text/html; q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: ja,en-us;q=0.7,en;q=0.3
Accept-Charset: Shift_JIS,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://sonic64.com/
Pragma: no-cache
Cache-Control: no-cache
302 ���֤��� cl.xml �إ�����쥯�ȡ�
HTTP/1.x 302 Found
Date: Mon, 20 Feb 2006 04:46:02 GMT
Server: Apache/1.3.34 (Unix)
Location: http://sonic64.com/cl.xml
Keep-Alive: timeout=3, max=7
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
302 ����������饤����Ȥ� cl.xml �˥ꥯ�����ȡ�
GET /cl.xml HTTP/1.1
Host: sonic64.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja-JP; rv:1.7.12) Gecko/20050919 Firefox/1.0.7
Accept: text/xml,application/xml,application/xhtml+xml,text/html; q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: ja,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: Shift_JIS,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
If-Modified-Since: Mon, 20 Feb 2006 02:33:30 GMT
If-None-Match: "339172-24c4-43ebfb7a"
������� Accept-Encoding: gzip �ʤɤϥꥯ�����Ȥˤʤ�����cl.xml �Ϥ������ä��ꥯ�����Ȥξ��ϰ��̤��Ƥ��ʤ�����ƥ�Ĥ��֤������ʤΤǡ�̵���쥹�ݥ��֤���롣
HTTP/1.x 304 Not Modified
Date: Mon, 20 Feb 2006 04:46:02 GMT
Server: Apache/1.3.34 (Unix)
Connection: Keep-Alive, Keep-Alive
Keep-Alive: timeout=3, max=6
Etag: "339172-24c4-43ebfb7a"
����Ǥ褷�ȡ�
* HTTP �ꥯ�����Ȥν�����λ�ޤǤν����֤�����˵�Ͽ����
���ε�����ľ���URL: Permlink | ���ε�����°���륫�ƥ���: [IIS] [Apache] [http]
���פ�ʬ�ϡ��ѥե����ޥ������δƻ�ʤɤdz��Ѥ��뤿�ᡢhttp ������¦�ǥꥯ�����Ȥ�����������ȥ쥹�ݥ��֤��ޤǤɤ�������֤������ä�����Ͽ��������
�����֤ʤɤ��ͤ� http �����о��ư�����ץꥱ�������¦�ǥ���������Ȥߤ���Τ����̡��������Ȥꤢ������Ͽ�����Ǥ���Ф����Ȥ��ϡ�http �����Ф����������ǽ��Ȥäƥ������������˽���Τ���ü���ᤤ��
- Apache 2��
LogFormat �ǥ��쥯�ƥ��֡�CustomLog �ǥ��쥯�ƥ��֤ν���ʸ����� %D ��Ȥ���mod_log_config - Apache HTTP ������
http://httpd.apache.org/docs/2.2/ja/mod/mod_log_config.html# ...
%D �ꥯ�����Ȥ��������Τˤ����ä����֡��ߥ���ñ��
- Apache 1.3��
ɸ��ǤϽ��ϤǤ��ʤ�? �⥸�塼��ʤɤ�ɬ��? ����� Apache 1.3�Ϥ�Ĵ���оݳ��ʤΤǾܺ٤�Ĵ�٤Ƥ��ʤ���%T ����ñ�̤ʤ��������Ǥ���餷����̤��ǧ����äȤ⡢��ñ�̤��Ȥ��ޤꤦ�줷���ʤ�������ʤ����Ϥ������ɡ�- Internet Information Service (IIS) 6.0
�����ͥå� ����ե������� �����ӥ� (IIS) �ޥ͡����� �Ρ�Web �����ȤΥץ��ѥƥ��פΡ�Web �����ȡץ��֤Ρ֥����ε�Ͽ��ͭ���ˤ���פΡ־ܺ�����ץ��֤Ρֽ����� ( time-taken )�ץ����å��ܥå�����ˤ��롣Internet Information Service (IIS) 6.0 �إ��
[������]
��������λ����ޤǤ��פ������֤�Ͽ����Ȥ������ޤ���ODBC ������������٤ƤΥ��������Ǥϡ����μ��˽����������֤��ߥ���ñ�̤ǥ�������Ͽ����ޤ���HTTP.sys (�����ͥ�⡼�� �ɥ饤��) ������β��ϤϤ������˺ǽ�ΥХ��Ȥ��������ȡ����饤�������Υ����ॹ����פ����������ޤ���IIS �ǺǸ����������λ����ȡ����饤�������Υ����ॹ����פ���ߤ��ޤ����ͥåȥ����Ǥλ��֤Ͻ����֤�ȿ�Ǥ���ޤ��ޤ��������Ȥؤκǽ����ϡ�¾����������ᡢ�ޤ���Ʊ��������٤ơ������֤��鷺����Ĺ���ʤ�ޤ�������ϡ�HTTP.sys �ˤ��ǽ������˥��� �ե����뤬������뤫��Ǥ���
�ʲ��Ͻ��Ϥ��������Υ���ץ롣
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken
2005-12-27 09:14:59 W3SVC1 127.0.0.1 GET /iisstart.htm - 80 - 127.0.0.1 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322) - 200 0 0 1842 251 40
������ 40 �� time-taken ���͡�ñ�̤ϥߥ��á�
- Internet Information Service (IIS) 5.0
IIS 5 �Ǥ� IIS 6 ��Ʊ�����������ǽ���������ޥ˥奢��ε��Ҥ����˾��ʤ���IIS 5.0 �ޥ˥奢��
[������] �����������פ������֡�
���������
��³Ū�˥ǡ�����ή��Ƥ�Ф����Τǡ�HTTP Status 102 Processing �� 202 Accepted ���֤��Ȥ�?
Transfer Encoding: Chunked �Ǿ��Ф��˥��ߡ��ǡ������֤��Ȥ�?
�ɤ���ˤ��衢���ʻȤ�ʤ��ü�ʥ��ơ����������ɤ���ߡ��ǡ����ޤ���갷����褦�˥��饤����Ȥ�������ɬ�פ����롣
���⤽�� HTTP �Ϥ�������Ĺ�������μ¹Ԥ��ԤĤȤ��������ˤϸ����Ƥ��ʤ����顢�߷פ�����ľ���������������ʤ�餫����Ʊ���ʻ��Ȥߤ�������������������ݤǤ��뤷���ͥåȥ���䥵���Фλ�����Ǥ���Ϥ���
�ɤ����Ƥ��߷פ��Ѥ����ʤ�����ä��顢��ϩ��� proxy ��ե�������������Ϥ�����������ѹ����ơ��ǡ�����ή��Ƥ��ʤ����� HTTP �ȥ����������ǤޤǤΥ����ॢ���Ȼ��֤�Ĺ������Ȥ���
�ޤ��ϡ���³���ڤ줿��⥵���о�ǤϽ������³������褦�ˤ������Ľ�����̤�å����롣���饤����Ȥ���ȥ饤���Ƥ����饭��å��夷�Ƥ�����������̤��֤��褦�ˤ���С������ॢ���Ȥ�ȯ����Ψ�����롣
���Ȥϡ�������ʬ�䤷�ơ��쥹�ݥ��֤��ޤǤλ��֤�û������Ȥ���DB �� ACID ���ᤵ��ʤ��褦�ʽ�������ʤ��������ɡ�
* mod_rewrite �ǥꥯ�����Ȥ˱����� gzip ���̥ե�������֤�
���ε�����ľ���URL: Permlink | ���ε�����°���륫�ƥ���: [Apache] [http]
cl.xml �˥ꥯ�����Ȥ����ä��Ȥ���Accept-Encoding �� gzip �����ꡢ���� cl.xml.gz �������Ф�¸�ߤ��Ƥ����� Content-Encoding: gzip �� cl.xml.gz ����Ȥ��֤��褦�ˤ�����
cl.xml �˥ꥯ�����Ȥ��줿�Ȥ��� Content Negotiation ��Ư��������ĥ�Ҥ����ڤʤ� cl �˥����������줿�Ȥ��� Content Negotiation ��Ư���Ȥ�����ư���ä�������ǤϻȤ��ˤ����Τǡ�mod_rewrite ��Ȥäư��̥ե�������֤��褦�ˤ��롣
- mod_rewrite �����Ѥ��� Content Negotioation �����ؤ� .htaccess ����ץ�
�ʲ��� RewriteRule ������Ȥꤢ������˾��ư��ϼ¸��Ǥ�����RewriteEngine on
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME} !\.gz$
RewriteCond %{REQUEST_FILENAME}\.gz -s
RewriteRule .+ %{REQUEST_URI}.gz
RewriteRule �γƹԤ�������
%{HTTP:Accept-Encoding} gzip �ϡ����饤����Ȥ� HTTP �ꥯ�����ȥإå���� Accept-Encoding ��¸�ߤ�������ʸ���� gzip ���ޤޤ�Ƥ��뤫�ɤ���������å����Ƥ��롣ñ�ʤ�����ɽ���ˤ������å��ʤΤ� sonic64gzip �ʤɤȤ���ʸ����Ǥ�ޥå������㤦���ɡ��ޤ������Ǥ��硣���ʤߤˡ�Accpet-Encodind: sonic4gzip �Ǽºݤ˥ꥯ�����Ȥ��� RewriteLog ���� matched �ˤʤäƤ���
(4) RewriteCond: input='sonic64gzip' pattern='gzip' => matched
RewriteCond %{REQUEST_FILENAME} !\.gz$ �ϡ��ǽ餫�� .gz �ե�������������줿���� Rewrite ���ʤ������Ƚ�ꡣ�������ʤ��ȡ�file.html.gz �˥������������ä����� file.html.gz.gz ��õ���˹ԤäƤ��ޤ�����äȤ⡢���� RewriteCond %{REQUEST_FILENAME}\.gz -s �Ǥ� gz �ե�����¸�ߥ����å����Ƥ���뤫�顢���ʤ��Ƥ�Ȥꤢ������ư���������Ǥ⤳����� png �� .jpg ������å��оݤˤʤ��ʤ�����äѤ� .html �� .xml �������оݤȤ����������������������ʤ���
RewriteCond %{REQUEST_FILENAME}\.gz -s �ϡ�.gz �ե����뤬¸�ߤ��뤫�ɤ���������å����Ƥ��롣.gz �ե����뤬¸�ߤ��ʤ����� Rewrite �����ˤ�ȤΥꥯ�����ȤΥե�������֤���
- HTTP �ȥ�����������
�֥饦���ǥꥯ�����Ȥ�����̡�http://sonic64.com/cl.xml
GET /cl.xml HTTP/1.1
Host: sonic64.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja-JP; rv:1.7.10) Gecko/20050717 Firefox/1.0.6
Accept: text/xml,application/xml,application/xhtml+xml, text/html;q=0.9,text/plain;q=0.8, image/png,*/*;q=0.5
Accept-Language: ja,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: Shift_JIS,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
HTTP/1.x 200 OK
Date: Wed, 14 Sep 2005 22:51:21 GMT
Server: Apache/1.3.33 (Unix)
Last-Modified: Tue, 13 Sep 2005 23:08:14 GMT
Etag: "3391fb-2ecc-43275bde"
Accept-Ranges: bytes
Content-Length: 11980
Keep-Alive: timeout=3, max=8
Connection: Keep-Alive
Content-Type: application/xml
Content-Encoding: gzip
RewriteLog �ν������ơ�
10.9.7.2 - - [14/Sep/2005:23:35:52 +0900] [192.168.0.38/sid#804b97c][rid#80941ac/initial] (3) [per-dir /home/hiroaki/public_html/test/] strip per-dir prefix: /home/hiroaki/public_html/test/cl.xml -> cl.xml
10.9.7.2 - - [14/Sep/2005:23:35:52 +0900] [192.168.0.38/sid#804b97c][rid#80941ac/initial] (3) [per-dir /home/hiroaki/public_html/test/] applying pattern '.+' to uri 'cl.xml'
10.9.7.2 - - [14/Sep/2005:23:35:52 +0900] [192.168.0.38/sid#804b97c][rid#80941ac/initial] (4) RewriteCond: input='gzip' pattern='gzip' => matched
10.9.7.2 - - [14/Sep/2005:23:35:52 +0900] [192.168.0.38/sid#804b97c][rid#80941ac/initial] (4) RewriteCond: input='/home/hiroaki/public_html/test/cl.xml' pattern='!\.gz$' => matched
10.9.7.2 - - [14/Sep/2005:23:35:52 +0900] [192.168.0.38/sid#804b97c][rid#80941ac/initial] (4) RewriteCond: input='/home/hiroaki/public_html/test/cl.xml.gz' pattern='-s' => matched
10.9.7.2 - - [14/Sep/2005:23:35:52 +0900] [192.168.0.38/sid#804b97c][rid#80941ac/initial] (2) [per-dir /home/hiroaki/public_html/test/] rewrite cl.xml -> /~hiroaki/test/cl.xml.gz
10.9.7.2 - - [14/Sep/2005:23:35:52 +0900] [192.168.0.38/sid#804b97c][rid#80941ac/initial] (1) [per-dir /home/hiroaki/public_html/test/] internal redirect with /~hiroaki/test/cl.xml.gz [INTERNAL REDIRECT]
10.9.7.2 - - [14/Sep/2005:23:35:52 +0900] [192.168.0.38/sid#804b97c][rid#8095f1c/initial/redir#1] (3) [per-dir /home/hiroaki/public_html/test/] strip per-dir prefix: /home/hiroaki/public_html/test/cl.xml.gz -> cl.xml.gz
10.9.7.2 - - [14/Sep/2005:23:35:52 +0900] [192.168.0.38/sid#804b97c][rid#8095f1c/initial/redir#1] (3) [per-dir /home/hiroaki/public_html/test/] applying pattern '.+' to uri 'cl.xml.gz'
10.9.7.2 - - [14/Sep/2005:23:35:52 +0900] [192.168.0.38/sid#804b97c][rid#8095f1c/initial/redir#1] (4) RewriteCond: input='gzip' pattern='gzip' => matched
10.9.7.2 - - [14/Sep/2005:23:35:52 +0900] [192.168.0.38/sid#804b97c][rid#8095f1c/initial/redir#1] (4) RewriteCond: input='/home/hiroaki/public_html/test/cl.xml.gz' pattern='!\.gz$' => not-matched
10.9.7.2 - - [14/Sep/2005:23:35:52 +0900] [192.168.0.38/sid#804b97c][rid#8095f1c/initial/redir#1] (1) [per-dir /home/hiroaki/public_html/test/] pass through /home/hiroaki/public_html/test/cl.xml.gz
- Vary �إå�����Ϥ��������������Ū
HTTP �쥹�ݥإå��� Vary: Accept-Encoding ���ɲä���Ȥ������Ū��ư���ˤʤ롣Vary �إå��� 2004-02-06 ��http �� Vary �쥹�ݥإå��ΰ�̣�Ȼ�����פǽ���mod_rewrite ��Ǥ�դ� HTTP �쥹�ݥإå������������뤳�ȤäƤǤ���Τ���? �Ķ��ѿ����ͤ����ꤹ�뤳�ȤϤǤ��뤱�ɡ�ľ�ܥإå����ɲä�����ˡ�ϸ��Ĥ����ʤ��ä�������HEADER �ǥ��쥯�ƥ��֤�Ȥ��Ф����Τ����ʲ��Τ褦�ʴ�������?
Header append Vary Accept-Encoding
������������Ȥ��Ĥ� Vary �����äƤ��ޤ��Τǡ��쥹�ݥ� Content-Encoding: gzip ������Ȥ����� Vary ���֤��褦�ˤ��������ɡ��Ķ��ѿ����ͤ˱����ƾ��ʬ���Ǥ���Τ� Apache 2.0 �Ϥ���? �ɥ�����Ȥ��ɤ�Ǥߤ롣
mod_headers - Apache HTTP ������ Header �ǥ��쥯�ƥ���
http://httpd.apache.org/docs/2.1/mod/mod_headers.html#header
��ʸ: Header [condition] set|append|add|unset|echo header [value] [early|env=[!]variable]
Apache module mod_headers
http://httpd.apache.org/docs/1.3/mod/mod_headers.html
Syntax: Header set|append|add header value
1.3 �ϤΥɥ�����Ȥˤ� env= �Ȥ�����ʸ���Ȥ���ȤϽƤʤ����ʤ����ɤ���ˤ��衢mod_header �Υ⥸�塼�뤬���ơ�����: Extension ���㤢�Ȥ��ʤ���ǽ�����⤤��
���⤽�� Vary �إå����ղää� ɬ��? �侩? HTTP1.1 ���ꤷ�Ƥ��� RFC 2616 �ǤϤɤ��ʤäƤ�?
�ϥ��ѡ��ƥ�����ž���ץ��ȥ��� -- HTTP/1.1
http://www.studyinghttp.net/cgi-bin/rfc.cgi?2616#Sec14.44
HTTP/1.1 �����Фϡ������ж�ư���ͥ�����������������뤢���륭��å����ǽ�ʥ쥹�ݥ� Vary �إå��ե�������ͤ�ޤ�٤��Ǥ��롣����������ǡ�����å���Ϥ��Υ�����ؤξ���Υꥯ�����Ȥ�Ŭ�ڤ˲�᤹������Ǥ����桼������������Ȥˤ��Υ�����ؤΥͥ�������������¸�ߤˤĤ����Τ餻������Ǥ��롣�����Фϡ������ж�ư���ͥ�����������������륭��å����Բ�ǽ�ʥ쥹�ݥˤ⡢�桼������������Ȥˤ��Υ쥹�ݥ��ˤ��Ѳ����Ƥ��ޤ��쥹�ݥΤˤĤ��Ƥ�ͭ�פʾ��������Ǥ��������顢Vary �إå��ե�������ͤ�ޤ�����Ǥ��롣
�ִޤޤʤ���Фʤ�ʤ��פǤϤʤ����ִޤ�٤��Ǥ���פʤΤ�ɬ�ܤǤϤʤ��Ȥ������Ȥ������㤢���Ȥꤢ������ Vary �ʤ��Ǥ�������
�ɵ���
Internet Explorer �����饤����ȤȤ���HTTP �쥹�ݥ� Vary �إå����֤��Ƥ��ޤ��ȡ�IE �� HTTP �ꥯ�����ȥإå� If-Modified-Since ���������Ƥ��ʤ��Ȥ������꤬����褦�������η�̡�������쥹�ݥ� 200 OK ���֤���������ʤ��ʤꡢ304 Not Modified �ˤ��쥹�ݥ��֤��ʤ��ʤ롣Vary ������ʤ���Ф�������ϲ���Ǥ���褦�ʤΤǡ�Content-Encoding �����֤��ʤ���������Ū�˸�������꤬���ʤ����⡣
* Content Negotiation �ǥꥯ�����Ȥ˱����� gzip ���̥ե�������֤�
���ε�����ľ���URL: Permlink | ���ε�����°���륫�ƥ���: [Apache] [http]
��������Ѥ���ȡ��ʲ���¸��Ǥ��롣
HTTP �ꥯ�����ȥإå� Accept-Encoding: gzip �����äƤ��Ƥ��륯�饤����ȤˤϤ��餫���� gzip �ǰ��̤��Ƥ������ե�������֤���Accept-Encoding: gzip �����äƤ��Ƥ��ʤ����饤����Ȥˤ� gzip ���̤��Ƥ��ʤ����Υե�������֤���
- Content Negotiation �����Ѥ��ư��̥ե�������֤���ˡ�� mod_gzip/mod_deflate �ΰ㤤
���饤����Ȥ����äƤ���ꥯ�����ȥإå��˱����ơ����̤����ǡ����ޤ������Υǡ������֤����츫 mod_gzip �� mod_deflate ����äƤ��뤳�Ȥ�Ʊ���褦�˸����뤬���㤦������ΰ㤤��ưŪ�˥ե�����̤���ΤǤϤʤ����ǽ餫�鰵�̺ѤߤΥե�������֤��Ƥ������Ȥˤ��롣ưŪ����������ڡ����̤������ʤ顢mod_gzip �� mod_deflate �Υե��륿��Ȥ��Τ��褤������������������Ū�ڡ����ʤ�С����餫���ᰵ�̤����ե�������֤������Ǥ��ɤ�����̤ʤ��Τǡ�CPU �����뤳�Ȥˤ�Ĥʤ��롣
�ޤ���mod_gzip �� mod_deflate ���Ȥ��ʤ������ФǤⰵ�̤����ѤǤ���Ȥ������åȤ����롣���� sonic64.com �Ϥ����饤���ͥåȤΥۥ��ƥ������ӥ������Ѥ��Ƥ��롣��ǰ�ʤ��Ȥ˻�����Ѥ��Ƥ��륳�����Ǥ� mod_gzip ���Ȥ��ʤ���Content Negotiation �ʳ�����ˡ�ǥ���ƥ�Ĥ̤����֤����Ȼפä��顢���٤Ƥ� CGI �ˤ��ƥ�������ǰ��̤��뤫��proxy �य�餤������ˡ���ʤ���
- Apache �� Content Negotiation
Apache ���� MultiViews ��Ȥ�������ƥ�ȥͥ������������ - Apache HTTP ������
http://httpd.apache.org/docs/2.1/content-negotiation.html
Multiviews
MultiViews �ϥǥ��쥯�ȥ���Υ��ץ����ǡ� httpd.conf�ե������ <Directory>, <Location>, <Files> �����������䡢(AllowOverride ��Ŭ�ڤ��ͤ� ���ꤵ��Ƥ����) .htaccess �ե������ Options �ǥ��쥯�ƥ��֤ˤ�ä����ꤹ�뤳�Ȥ��Ǥ��ޤ��� Options All �� MultiViews �åȤ��ʤ����Ȥ����դ��Ƥ�������������Ū�� ����̾�����ɬ�פ�����ޤ���
MultiViews ��ͭ���ˤʤ�ȡ����饤����ȤΥꥯ�����Ȥ˱����ƥ����Ф���Ŭ�ʥե�����������֤��褦�ˤʤ롣
��λȤäƤ��륵���Ф� httpd.conf �� MuitiViews ��ͭ���ˤʤäƤ���褦�ʤΤǻ�Ƥߤ롣
�ޤ������Υե�����ȡ����̤��Ƴ�ĥ�� .gz ���ղä����ե�������Ѱդ��롣
[21:27:32][hiroaki@sonic64 ~/public_html/test]$ ls -l
-rw----r-- 1 hiroaki users 39751 Sep 13 21:18 cl.xml
-rw----r-- 1 hiroaki users 9785 Sep 13 21:18 cl.xml.gz
�֥饦������ꥯ�����ȡ�
http://sonic64.com/test/cl.xml
GET /test/cl.xml HTTP/1.1
Host: sonic64.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja-JP; rv:1.7.10) Gecko/20050717 Firefox/1.0.6
Accept: text/xml, application/xml,application/xhtml+xml, text/html;q=0.9,text/plain;q=0.8, image/png,*/*;q=0.5
Accept-Language: ja,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: Shift_JIS,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
HTTP/1.x 200 OK
Date: Tue, 13 Sep 2005 12:29:40 GMT
Server: Apache/1.3.33 (Unix)
Last-Modified: Tue, 13 Sep 2005 12:18:00 GMT
Etag: "3449c4-9b47-4326c378"
Accept-Ranges: bytes
Content-Length: 39751
Keep-Alive: timeout=3, max=8
Connection: Keep-Alive
Content-Type: application/xml
����? ���ޤ� Content-Negotiation ����Ƥʤ��ʡ��ʤ��? �ꥯ�����Ȥ���ե�����̾���Ѥ��Ƥߤ뤫��cl.xml ����ʤ��ơ�cl ��ꥯ�����Ȥ��Ƥߤ褦��
http://sonic64.com/test/cl
GET /test/cl HTTP/1.1
Host: sonic64.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja-JP; rv:1.7.10) Gecko/20050717 Firefox/1.0.6
Accept: text/xml, application/xml,application/xhtml+xml, text/html;q=0.9,text/plain;q=0.8, image/png,*/*;q=0.5
Accept-Language: ja,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: Shift_JIS,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
HTTP/1.x 200 OK
Date: Tue, 13 Sep 2005 12:35:24 GMT
Server: Apache/1.3.33 (Unix)
Content-Location: cl.xml.gz
Vary: negotiate,accept-encoding
TCN: choice
Last-Modified: Tue, 13 Sep 2005 12:18:02 GMT
Etag: "3449c8-2639-4326c37a;4326c74b"
Accept-Ranges: bytes
Content-Length: 9785
Keep-Alive: timeout=3, max=8
Connection: Keep-Alive
Content-Type: application/xml
Content-Encoding: gzip
���٤Ϥ��ޤ����ä���Content-Location: cl.xml.gz �� Vary: negotiate,accept-encoding ���֤���Ƥ��롣cl �ǥꥯ�����Ȥ���� Content-Negotiation ��Ư����cl.xml �ǥꥯ�����Ȥ����Ȥ��� Content-Negotiation ���ʤ���ʤ����ʤ�Ǥ�����?
����ƥ�ȥͥ������������ - Apache HTTP ������
http://httpd.apache.org/docs/2.1/ja/content-negotiation.html
��� MIME �����פ�Ȥ�³������ (�㤨�� foo.html)���ϡ������ĥ�Ҥ� (�����ǥ���ĥ�Ҥ⤢��Ф����ޤ��) MIME �����׳�ĥ�Ҥα�¦�ˤʤ���Фʤ�ޤ��� (�㤨�� foo.html.en)��
�嵭�ڡ�����������¤ꡢfoo.MIME-TYPE.ENCODING �Υե������ foo.MIME-TYPE �ǥ��������Ǥ���Ϥ��ʤ�����ɤʤ��� �Ȥꤢ�����ʤ�� cl �Ǥʤ��ȥ���ʤΤ��ϸ��Ĵ�٤Ƥߤ褦��
- mod_mime �� ��ĥ�� gz �Υե������ Content-Encoding: gzip �ˤ��Ƥ���
���ޤ� Content-Negotiation ���ʤ���� gz �ե����뤬�֤��줿�Ȥ���Content-Encoding: gzip ��Ʊ���˥����Ф����֤���Ƥ��ơ��������Ʃ��Ū�ʰ��̡פˤʤäƤ��롣mod_gzip �� mod_deflate ��Ȥä��Ȥ���Ʊ���褦�ʡ�HTTP ž���ǡ������Τ�Τ̤��Ƥ�����֤�������ϤȤ��� Content-Negtiation �Ȥϴط��ʤ����ʲ��Τ褦�ˡ�cl.xml.gz ��ľ�ܥꥯ�����Ȥ����Ȥ��� Content-Encoding: gzip �������Ф����֤���Ƥ��롣
http://sonic64.com/test/cl.xml.gz
GET /test/cl.xml.gz HTTP/1.1
Host: sonic64.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja-JP; rv:1.7.10) Gecko/20050717 Firefox/1.0.6
Accept: text/xml, application/xml,application/xhtml+xml, text/html;q=0.9,text/plain;q=0.8, image/png,*/*;q=0.5
Accept-Language: ja,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: Shift_JIS,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
HTTP/1.x 200 OK
Date: Tue, 13 Sep 2005 12:42:35 GMT
Server: Apache/1.3.33 (Unix)
Last-Modified: Tue, 13 Sep 2005 12:18:02 GMT
Etag: "3449c8-2639-4326c37a"
Accept-Ranges: bytes
Content-Length: 9785
Keep-Alive: timeout=3, max=8
Connection: Keep-Alive
Content-Type: application/xml
Content-Encoding: gzip
Content-Encoding: gzip ���֤��Ƥ���Τ� mod_mime ����Apache �Υǥե���ȤǤ��ε�ǽ��Ư���褦�� httpd.conf �����Ҥ���Ƥ��롣httpd.conf �ΰʲ�����ʬ�������սꡣ�⤷���ꤵ��Ƥ��ʤ���С�.htaccess �����ꤹ�롣
<IfModule mod_mime.c>
#
# AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
��? �����Ť������ɡ���ĥ�� tgz �� AddEncodding ���Ƥ��? ������� tgz �Ȥ�����ĥ�Ҥ��դ����ե�����ξ�硢���饤�����¦�� gzip ��Ÿ�����Ƥ��ޤ��Τ� gzip ���줿�ե��������¸�������ȥ桼�����ͤ����Ȥ��ʤɤ�����ˤʤ��ʤ��Τ���? Google �� AddEncoding x-gzip gz tgz ������ȥҥåȡ�
Re: .tar.gz -> .tgz
http://search.fml.org/mlarchives/fml-help/200107/msg397.html
gz ��Ÿ������Ƥ��ޤ����Ȥ�������Ǥ����?
������äѤꡣ.tar.gz �Ȥ�����ĥ�Ҥʤ� Content-Encoding ���դ��ʤ��Τ�����ʤ�����.tgz �ˤ���� Content-Encoding ���դ��Ƥ��ޤ��Τ�Ÿ�����Ƥ��ޤ��ȡ��ޤ� tgz �ʤ�Ƴ�ĥ�Ҥ�Ȥ�ʤ��褦�ˤ��뤫��AddEncoding ���� tgz ��ä����ɤ�����������³��Ͼ��ʤ����ʡ�
- cl.xml �ؤΥꥯ�����Ȥ� cl.xml.gz �˥ͥ��������������
�����ʤ���������Ϥ�ꤿ�����Ȥ��Ǥ��ʤ��ä��ʤ���cl.xml �˥ꥯ�����Ȥ����ä��Ȥ���Accept-Encoding �� gzip �����ꡢ���� cl.xml.gz �������Ф�¸�ߤ��Ƥ����� Content-Encoding: gzip �� cl.xml.gz ����Ȥ��֤��褦�ˤ����������ʤ�����ɤʤ���cl.xml �� CGI �ˤǤ⤹��д�ñ�ˤǤ��뤱�ɡ����줸�㤢�����Ф�;�פ���٤��Ƥ��ޤ������礦���ʤ���mod_rewrite ��Ȥ�����������äƤߤ褦��
* Web �����ӥ��Υ����ॢ���Ȥλ��֤��Ф�
���ε�����ľ���URL: Permlink | ���ε�����°���륫�ƥ���: [.net] [MS SQL Server] [IIS] [http]
- ��ͤλ���
Web �����ӥ��Υ����ॢ���Ȥλ��֤��Ф��ʤ�ơ��ʤ�Ǥ���ʤ��Ȥ���ɬ�פ������? �Ȼפ����⤷��ʤ����Ǥ⡢��ͤˤϤ����������𤬤��롣�Ȥˤ��� Web �����ӥ��������ॢ���Ȥ��뤳�Ȥ������ʤ���Фʤ�ʤ������줬����β��ꡣ���Ȥ����饤����Ȥ���ꥯ�����Ȥ��ꤲ���塢�쥹�ݥ��֤äƤ���ޤ�2ʬ�Ȥ������ä��Ȥ��Ƥ⡣- Web �����ӥ����ظ��ư���Ƥ���
Web �����ӥ���ñ�����SOAP �ʤ� REST �ʤ�ǥꥯ�����Ȥ��ꤲ���쥹�ݥ��֤äƤ��롣��������������Ǥ⡢���̤Ϥ����¸����뤿��ˤ����Ĥ��Υߥɥ륦�������ظ��ư���Ƥ��롣�ǡ������ȥ��Ȥ��ơ��ǡ����١��������Ȥ��С�MS SQL Server��
�ǡ����١�������³����������ꤲ�뤿��Υǡ����ץ��Х�����.NET �� MS SQL Server �����ä��� System.Data.SqlClient��
�ǡ������ȥ�������������ǡ�����ù�����ӥ��ͥ������å���
�ӥ��ͥ������å���ܤ��뤿��� Web ���ץꥱ�������ե졼���������Ȥ��С�ASP.NET��
REST �� SOAP �Υꥯ�����Ȥ�����뤿��� HTTP �����С����Ȥ��С�IIS (Internet Infomation Server)��
REST �� SOAP �Υꥯ�����Ȥ��ꤲ�뤿��� HTTP ���饤����ȡ�.NET ���ä��� System.Web.Services.Protocols.SoapHttpClientProtocol �����꤬����������äƤ���롣
���������ƤΥ����ॢ���Ȥ��Ф��ʤ��ȡ�Web �����ӥ��Υ����ॢ���Ȥ��Ф��Ȥ�����ɸ��ã���Ǥ��ʤ����ʲ������줾��Υ����ॢ����������ˡ�Υ�⡣
- SQL Server �Υ�����¹Ի��֥����ॢ����
SqlCommand.CommandTimeout �ץ��ѥƥ� System.Data.SqlClient ̾������http://www.microsoft.com/japan/msdn/library/ja/cpref/html/fr ...
�ץ��ѥƥ���
���ޥ�ɼ¹Ԥ��Ե����� (��)�������ͤ� 30 �äǤ���
����
0 �ϡ����¤ʤ����ޤ��������������ޥ�ɼ¹Ԥλ�Ԥ��ʵ�Ū���Ե�����뤿�ᡢ CommandTimeout �Ǥϻ��Ѥ��ʤ��Ǥ���������
�������꤬ɬ�פʤ�ΤΤ��������� SqlCommand.CommandTimeout ������û����û���Ȥ��äƤ⡢30�ä⤢��櫓�����ɡ�
- IIS �� HTTP �쥹�ݥ��������Υ����ॢ����
IIS5 �ξ�硣�����ͥå� �����ӥ� �ޥ͡��������Web �����ȤΥץ��ѥƥ���ɽ�������롣�ִ���� Web �����ȡפ����ʤ��ä��顢�������å����ƥץ��ѥƥ���ɽ�������롣��Web �����ȡץ��֤Ρ���³�פΡ���³�Υ����ॢ���ȡפ���ñ�̤�����Ǥ��롣�ǥե���Ȥ�900�á���³�Υ����ॢ���Ȥ����ꤹ��
http://www.microsoft.com/resources/documentation/windowsserv ...
- SOAP ���饤����ȤΥ����ॢ����
WebClientProtocol.Timeout �ץ��ѥƥ�http://www.microsoft.com/japan/msdn/library/ja/cpref/html/fr ...
�ץ��ѥƥ���
XML Web �����ӥ���Ʊ��Ū�˸ƤӽФ��Ȥ��Υ����ॢ���� (�ߥ���ñ��)�������ͤ� 100000 �ߥ��äǤ���
����
Timeout �ץ��ѥƥ��� Timeout.Infinite �����ꤹ��ȡ�������ॢ���Ȥ��ʤ����Ȥ��ޤ���XML Web �����ӥ� ���饤����Ȥ� Timeout �ץ��ѥƥ����ॢ���Ȥʤ������ꤷ�Ƥ⡢Web �����С�������С�¦�ǥ����ॢ���Ȥˤ����礬����ޤ���
* Delphi �� Indy ����ݡ��ͥ�Ȥ� Cookie ��
���ε�����ľ���URL: Permlink | ���ε�����°���륫�ƥ���: [Delphi] [http]
HTTP := TIdHTTP.Create(nil);
HTTP.Request.CustomHeaders.Add('Cookie: ' + cookie_string); // Set Cookie
cookie_string := HTTP.Response.RawHeaders.Values['Cookie']; // Get Cookie
2003-12-16 �Ρ�indy �� HTTP �γ�ĥ�إå����פȤ�äƤ뤳�Ȥ�Ʊ����HTTP �إå���ľ�ɤߡ�ľ���Ƥ������CookieManager ���饹��Ȥ���ˡ�⤢�뤬���嵭����ˡ�����֥���ץ�Ǵ�ñ�����������嵭��ˡ�� Cookie ��ͭ�����¤�ɥᥤ��path �ϰ���̵�뤷�Ƥ���Τ����ա�������������� CookieManager ��Ȥ���
Google �������� ExtraHeaders ��Ȥ���ˡ�����Ĥ��ä�����Indy �ΥС�����ۤʤ�Τ��ץ��ѥƥ������Ĥ���ʤ��ä���
Indy Tips
http://www.monazilla.org/document/indytips.html
������������������
FIdHttp.Request.ExtraHeaders.Add('Cookie:NAME=HOGEHOGE'); // ����ʤ���
FIdHttp.Post(Url, Source, Res);
- Cookie ���
HTTP Cookieshttp://66.102.7.104/search?q=cache:aXMyyoN584QJ:www.studying ...
�ʤ��� 403 Forbidden �ˤʤäƤ��ޤ��Τ� Google ����å��塣
* ieHTTPHeaders - IE �� HTTP �إå�ɽ���ġ���
���ε�����ľ���URL: Permlink | ���ε�����°���륫�ƥ���: [IE] [http]
2005-04-16 �˽���Live Http headers - HTTP �إå�ɽ���ġ���פ� Mozilla / Firefox �Ѥ��ä������������ IE �ѡ�Firefox ��Ȥ��ʤ��Ķ�����Ω�ġ�
- ieHTTPHeaders �Υ���������ɤȥ��ȡ���
���ե�����륵���Ȥ��� setup.exe �����������ɤ��Ƽ¹Ԥ���������ǿ��Ǥ� Version 1.6�����ȡ��뤹��ݤ� IE �٤��Ĥ��Ƥ���������̵��blunck.info
http://www.blunck.info/iehttpheaders.html
Download ieHTTPHeaders - Just download and execute the installer
http://www.blunck.se/iehttpheaders/ieHTTPHeadersSetup.exe
- ieHTTPHeaders �λȤ���
IE �ξ�����˥塼���顢ɽ�� (V) -> �������ץ����顼�С� (E) -> ieHTTPHeaders �����롣����� IE �Υ�����ɥ������� HTTP �ꥯ�����Ȥȥ쥹�ݥ�ɽ�����륦����ɥ����и����롣
���Ȥϥ֥饦������Хꥯ�����Ȥȥ쥹�ݥ����ɽ������롣
HTTP �ꥯ������/�쥹�ݥ�ɽ��������ɥ�����ʸ����ԡ����뤳�Ȥ�Ǥ��롣CTRL + C ����������˥塼�ˤ�̵�����ɤ͡�
ɽ������ץ롣
GET http: //sonic64.hp.infoseek.co.jp/ HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*
Accept-Language: ja
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
Host: sonic64.hp.infoseek.co.jp
Proxy-Connection: Keep-Alive
Cookie: ******=**********************; ***=************
HTTP/1.1 200 OK
Date: Wed, 27 Apr 2005 00:37:17 GMT
Server: Apache
Content-Length: 70461
Content-Type: text/html
X-Cache: MISS from ****************
Age: 0
Proxy-Connection: close
Via: HTTP/1.0 ********** (**********************)
- ieHTTPHeaders �Υ��ץ��������
HTTP �ꥯ������/�쥹�ݥ�ɽ��������ɥ��DZ�����å����� Settings �������������̤�����롣Misc �� Scroll during Capture �ˤϥ����å�������Ƥ������������å�������Ƥ����ȡ�����������С���ư�ǰ��ֲ��ޤǰ�ư���Ƥ���롣unix �� tail ���ޥ�ɤΤ褦�ˡ���˺ǿ��ξ����ɽ����³���뤳�Ȥ��Ǥ��롣
ieHTTPHeaders �� Live Http headers ����٤�ȵ�ǽ�����ʤ�������ɽ���ǥ���ץ����о� URL ��ʤ�������Ǥ��ʤ������̥�����ɥ���ɽ�������뤳�Ȥ�Ǥ��ʤ�������ȯ�Ԥ����ꥯ�����Ȥ������ƺ��٥ꥯ�����Ȥ�ľ�����Ȥ�Ǥ��ʤ��������ޤǴʰפʥ���ץ����ѥġ���ȳ���ڤäƻȤ��Τ��ɤ���������
���Τ� MIME �����פ��Ф� [�ե�����Υ����������] ���������� �ܥå����� JP260519
http://support.microsoft.com/default.aspx?scid=kb;JA;260519
Web �����С�����ɥ�����Ȥ�����ݡ��桼�����������Υɥ�����Ȥ�֥饦���dz�������ľ�ܥǥ���������¸�Ǥ���褦��¨�¤˥ץ���ץȤ�ɽ����������礬����ޤ��������� Microsoft Word ("application/ms-word") �ʤɤ� MIME (Multipurpose Internet Mail Extensions) �����פ��Ф�������ư��ϡ�Internet Explorer �ǥɥ�����Ȥ��褦�ˤʤäƤ��ޤ���
content-disposition �إå���Ȥäơ����δ����ư���̵���ˤ��뤳�Ȥ��Ǥ��ޤ������Υե����ޥåȤϼ��ΤȤ���Ǥ���
Content-disposition: attachment; filename=fname.ext
Content-disposition: �Ϥ褯�Ȥ����ɡ�IE ���Ф��Ƥ���ʸ��̤�����Ȥ��Τ�ʤ��ä���
- ���饤�����¦�Ǥ� Shift �����ʤ�������å� ���������Ƥ�Ǥ��ޤ���
���饤�����¦�Ǥ� Shift �������ʤ��鳺���ե�����ؤΥ��å�������ɤ����������Ȼפä����ɡ��Ǥ��ʤ���html �� png �ؤΥ�� Shift ���ʤ��饯��å����Ƥ�֥饦�������̤˳����Ƥ��ޤ����� Shift ���������ʤ������̤Υ��쵤�˥���å����ƥե��������¸�������������������ɤʤ���
- Netscape Navigator �ʤ� Shift + ����å���ͭ��
��������Shift �������ʤ��饯��å��äơ��ɤΥ֥饦���ʤ�ͭ���ʤ������? ���̤Υ��֥饦���ǥ���å����ޤ��ä���¸����ʤ�ơ����⺸��狼��ʤ��ä����ν�Ȥ������� wget �ʤ� Iria �� Irvine �Ȥä�ͷ��Ǥ�֤˥���������ɤ������͡��Ȥʤ�ȡ�20������ Netscape �������ä�������?���ʥ�륯�饤����ȤȤ��Ƥ����ȤäƤ��ʤ� Netscape Communicator 4.8 ��Ω���夲�ơ�Navigator �� http://www.google.co.jp/ �� Shift + ����å�����ȡ����� Save as �������������Ф���! ����ȴ��㤤���Ƥ���������ʤߤ� Mozilla Firefox 0.8 �ǤϤǤ��ʤ��ä���
- IE �Υ��饤�����¦�Ǥ��н�
�ʲ�����ˡ�ʤ饯�饤�����¦���Ȥ����� IE ¦���н��ǽ���Ǥ⡢��ΰ�����ǤϤ��줬�Ǥ��륯�饤����Ȥ�Ķ���������ʤ����顢��äѤꥵ����¦�Ǥ��н褬ɬ�ס��ʤ��������С�¦���� Content-Disposition �إå��������������ˡ����饤�����¦������ˤ�������������ɽ����������ˤϡ��ʲ��μ���¹Ԥ��ޤ���
���饤�����¦�Υե�������ץ��������ꤹ����ˡ:1. [�ޥ� ����ԥ塼��] ����֥륯��å����ޤ���
2. [�ġ���] ��˥塼�� [�ե���� ���ץ����] ��å����ޤ���
3. [�ե����� ������] ���֤�å����ޤ���
4. [��Ͽ����Ƥ���ե����� ������] �β����顢������������ɽ�����������ե�����μ�������ơ�[�ܺ�����] �ܥ����å����ޤ���
5. [����������ɸ�˳�����ǧ��] (�ޤ��� [����������ɸ�˾�˳����褦�����ꤹ��]) �Υ����å��ܥå����դˤ���[OK] ��å����ޤ���
6. [��Ͽ����Ƥ���ե����� ������] �β�����ե�����μ�������ơ�[�ܺ�����] �ܥ����å����ޤ���
�� ���������ե�����μ���ˤ�äƤϾ嵭�μ�������Ǥ��ʤ���Τ⤢��ޤ���
* �����Ф�HTTP����ž����ͭ��/̵�����ǧ�Ǥ��륵����
���ε�����ľ���URL: Permlink | ���ε�����°���륫�ƥ���: [http] [�ͥåȥ��]
http://www.port80software.com/surveys/top1000compression/#ch ...
�ʲ�������å����Ƥ���롣
�����ꤷ�� url �Υ����ȤǤ� http ���̤�����Ƥ��뤫�ɤ���
�����̤���Ƥ���ʤ�ե����ޥåȤϲ�����deflate �ʤΤ� gzip �ʤΤ���
�����̤���Ƥʤ��Ȥ��ϡ����˰��̤�����ɤ����٤Υ������ˤʤꡢ�ɤ줯�餤��®���Ǥ��뤫
Port 80 �� telnet ���� Accept-encoding: gzip �դ��Υꥯ�����Ȥ����äƥ쥹�ݥ�Ф���������ɡ��ե����फ���ǧ�Ǥ���Τϴ�ñ�Ǥ�����
Web�ӥ��ͥ����륿��ȤΥͥ�Ģ�֥ѥ��å����⤬���ˤʤ�ʤ鰵��ž�����٤��פ��顣
http://neta.ywcafe.net/000107.html
������i�⡼�ɤʤɤη��������ѥ֥饦���⡢�Ȥä����Τ����б����Ƥ��롣
�Τ�ʤ��ä���Content-Encoding ���б����Ƥ�ʤ�ơ����� i-mode �äƹⵡǽ�ʤ���ʤ���
�ɵ���i-mode �� Content-Encoding �б��Ȥ����Τϸ�����ä����͡�
- 2�����ͤ��ߤä��Τ� gzip ���ä��ʤ�
���������С�2001ǯ8��� 2ch.net ���ĺ��δ������������8������פ�ߤä��Τ� gzip �Ȥ������ȤˤʤäƤ��ʤ������ΤȤ���2�����ͤ�ϳΤ�160Mbps �Ȥ��������ޤ���ž���̤�Ǻ��Ǥ������ʤ�Ȥ�����ž���̤餷���������ۥ��ƥ�����Ȥη��������֤���������ǡ�mod_gzip �ʤ�ƥ��ȡ���Ǥ��ʤ��ȤΤ��Ȥ��ä�����ɡ�read.cgi ���ɥ������ ľ�� gzip ���ޥ�ɤ�ƤӽФ��ư��̤�����Ȥ�����������ˡ������������ΤȤ���2�����ͤ��ž���̤�Ǻ��ǤϤ����� CPU ��;�äƤ��ΤǤ�����ˡ�Ǥ��Ū�ʸ��̤�夲�Ƥ�����- Landscape �� gzip ž������Ƥ�Τ���
��äƤߤ褦��http://www.port80software.com/tools/compresscheck.asp?url=ht ...
Compression status: Uncompressed�������ʤ����infoseek �� CPU ��٤ˤ��Ƥ�Τ��ʡ�
���Ȥ��С����饤����Ȥ��������� User-Agent �ꥯ�����ȥإå��ˤ�ä��֤����Ƥ��Ѥ��Ƥ��륵���Ф�����Ȥ��롣���ξ�硢�����Ф����֤��줿�ǡ����� proxy ����ľ�˥���å��夷�Ƥ��ޤ��ȡ��̤� User-Agent �� proxy �˥������������Ȥ��˥����Ф��տޤ��ʤ��ǡ��������饤����Ȥ��֤���Ƥ��ޤ���
�쥹�ݥإå��� Vary: User-Agent �����ꤵ��Ƥ���С�proxy �� User-Agent �ˤ�ä����Ƥ��Ѥ�뤳�Ȥ��Τ뤳�Ȥ��Ǥ���Τǡ�����å���ʤ��Ȥ���User-Agent ��˰ۤʤ륭��å�����ݻ����롢�Ȥ��ä��б����Ǥ��롣
RFC2616 HTTP/1.1: �إå��ե��������� 13.6 �ͥ��������Ȥ��줿�쥹�ݥΥ���å���
http://www.studyinghttp.net/rfc_ja/2616/sec13.html#sec13.6
RFC2616 HTTP/1.1: �إå��ե��������� 14.44 Vary
http://www.studyinghttp.net/rfc_ja/2616/sec14.html#sec14.44
Vary �ե�������ͤϡ����Υ쥹�ݥ������Ǥ���{fresh} �֡�����å��夬�Ƹ���̵���ˤ����³���ꥯ�����Ȥ��Ф���쥹�ݥȤ��ƻȤäƤ褤���ɤ��������˷��ꤹ�뤿��Υꥯ�����ȥإå��ե�����ɤΥ��åȤ�������å���Ǥ��ʤ������뤤�Ͽ����Ǥʤ��ʤä�{stale} �쥹�ݥξ�硢Vary �ե�������ͤϥ桼������������Ȥˤ���ɽ�������뤿��˻Ȥ�줿���{criteria} �ˤĤ������Τ��뤿��˻Ȥ��롣 "*" �Ȥ��� Vary �ե�������ͤϡ�����å���Ϥ��Υ쥹�ݥ�Ŭ�ڤ�ɽ���Ǥ��뤫�ɤ������³���Υꥯ�����ȤΥꥯ�����ȥإå�����Ϸ���Ǥ��ʤ����Ȥ��������̣���롣����å���ˤ����� Vary �إå��ե�����ɤλȤ����ˤĤ��Ƥ� section 13.6 ���ȡ�
ñ���Υե�������ä���Ŭ�ڤ� Content-Type �إå�����Ϥ��ơ�CRLF ��2�Ľ��Ϥ����塢�ܥǥ���ʬ����Ϥ��Ƥ��Ф������¤˴�ñ�����Ǥ⡢�֤��ǡ�����ʣ���ξ��Ϥɤ�� http response ���֤��Ф����Τ�Ĵ�٤Ƥߤ���
- ʣ���ե�������֤������ Content-Type
��� Content-Type ������Ȼפ���Ŭ�ڤ� Content-Type �Ȥ�������� UserAgent �Ǥ���С�ʣ���ե�������������ʤ���������֤��Ƥ�������Ϥ���ʣ���ե�����ΤޤȤ������Ŭ���� Content-Type �����äȤ���Ϥ����������Ĵ�٤Ƥߤ롣�����˻פ��Ĥ�����Ի���ϡ��ե�����ˤ��ե�����Υ��åץ����ɤ����ե�����ˤ��ե�����Υ��åץ����ɤǤϡ�ʣ���ե�����Ʊ�������ʤ�����������������Ȥ��С�Yahoo Mail �ʤɤ�ź�եե�������դ���Ȥ����쵤���դ��뤳�Ȥ��Ǥ��롣
���ΤȤ��� Content-Type �äƲ���ȤäƤ���Τ���Ĵ�٤�Ф�����Google �� http �ե����� ���åץ����� content-type �Ǹ���������� Content-type: multipart/form-data �Ȥ�����Τ�ȤäƤ��뤳�Ȥ�Ƚ�����ʤ�ۤɡ��ե����फ������Ȥ��Ϥ����������ʡ�
���ˡ��פ��Ĥ�����Ի���ϥ���������ʣ����ź�եե�������դ����Ȥ��äơ��ɤ�� Content-Type �ʤΤ���Ĵ�٤Ƥߤ���Netscape Messanger �� sent �ǥ��쥯�ȥ꤫�顢���˼�ʬ�����ä����Τ�����ʣ����ź�եե���������Τ�õ���ƥإå��Ƥߤ���
Content-Type: multipart/mixed; boundary="------------546DD04699AFAF892A7D6D3F"�ȽƤ��롣�ʤ�ۤɡ�multipart/mixed �Ǥ�������ʡ�boundary �ϥǥ�ߥ����ʡ�
- ���� HTTP �쥹�ݥ�ʣ���ե�������֤��ˤ� multipart/form-data �� multipart/mixed
�����Ф� Content-type: multipart/form-data �� Content-Type: multipart/mixed ���������롣Content-Type: multipart/mixed ������Ū�Ǥ������������ǡ���������륯�饤����ȤǼ��������롣Internet Explorer �� Mozilla �ʤɤǤ����Ƥ���ʤ����⤷��ʤ�������������ѤΥ��饤����Ȥ���Ѳ�ǽ�ʤΤ�����ʤ���- ����
Ϣ�ܡ������ͥåȡ��ץ��ȥ�������4��MIME��Multipurpose Internet Mail Extensions�ˡ�����http://www.atmarkit.co.jp/fnetwork/rensai/netpro04/netpro01. ...
RFC 2616�ˤ��ȡ��ʲ��Τ褦���������Ƥ�����multipart/mixed �Ϥ��ʤ������٥�ʷ��ʤ���ʡ�
http://www.studyinghttp.net/rfc_ja/2616/sec3.html
3.7.2 �ޥ���ѡ��ȥ�����
MIME �ϡ���ĤΥ�å������ܥǥ������ʣ���Υ���ƥ��ƥ��ץ��벽���� "multipart" �����פ��Ĥ����뤹�롣���٤ƤΥޥ���ѡ��ȥ����פ� RFC 2046 [40] �� section 5.1.1 ���������Ƥ���褦�ˡ����̤Υ��å�����ͭ������ǥ����������ͤΰ����Ȥ��ƶ����ѥ���{boundary parameter} ��ޤ�ʤ���Фʤ�ʤ�����å������ܥǥ��ϡ����켫�ȥץ��ȥ������Ǥΰ����Ǥ��ꡢ����椨�ˡ�body-parts �֤ι�����ɽ������ˤ� CRLF �Τߤ���Ѥ��ʤ���Фʤ�ʤ��� RFC 2046 �Ȱۤʤꡢ�ɤΥޥ���ѡ��ȥ�å������Υ��ԥ�����{epilogue} ����Ǥʤ���Фʤ�ʤ������Τ��ᡢHTTP ���ץꥱ�������� (���Ȥ����Υޥ���ѡ��Ȥ����ԥ�������ޤ�Ǥ��Ƥ�) ���ԥ�������ž�����ƤϤʤ�ʤ������������¤ϡ��Ǹ�Υޥ���ѡ��Ȥζ������ˤ�äƥ�å������ܥǥ��� "��ü" ����褦�ˡ��ޥ���ѡ��ȤΥ�å������ܥǥ��˼��ʸ³�����{the self-delimiting nature} ��������뤿���¸�ߤ��롣
����Ū�ˡ�HTTP �ϥޥ���ѡ��ȥ�å������ܥǥ���¾�Υ�ǥ��������פȤ϶���̵�������ʤ��ñ�ʤ��ղ�ʪ{payload} �Ȥ��ư�������������㳰�ϡ�206 (Partial Content) �쥹�ݥ���˸������� "multipart/byteranges" ������ (appendix 19.2) �Ǥ��ꡢ���ξ�� section 13.5.4 �� section 14.16 ��ɽ�����褦�ʡ������Ĥ��� HTTP ����å���ᥫ�˥���ˤ�äƲ�ᤵ��������������¾�Τ��٤Ƥξ��Ǥϡ�HTTP �桼������������Ȥϡ�MIME �桼������������Ȥ��ޥ���ѡ��ȥ����פμ����Ȥ����Ʊ�����ޤ��ϻ����褦�ʿ����٤��Ǥ��롣�ޥ���ѡ��ȥ�å������ܥǥ��γơ��Υܥǥ���ʬ��� MIME �إå��ե�����ɤϡ�HTTP �ǤϤ����� MIME ���ޥ�ƥ������ˤ������ʾ�ˤɤ�ʰ�̣������ʤ���
����Ū�ˤϡ�HTTP �桼������������Ȥϡ�MIME �桼������������Ȥ��ޥ���ѡ��ȥ����פμ����Ȥ����Ʊ�����ޤ��ϻ����褦�ʿ����٤��Ǥ��롣���ץꥱ�������ǧ���Ǥ��ʤ��ޥ���ѡ��ȥ��֥����פ������ä����ϡ������ "multipart/mixed" �����������ΤȤ��ư���ʤ���Фʤ�ʤ���
����: "multipart/form-data" �����פϡ�RFC 1867 [15] ��ɽ�����褦�ˡ��ä� POST �ꥯ�����ȥ�åɷ�ͳ�ǽ�������Τ˹�ä��ե�����ǡ�����ž�����뤿������̤��������Ƥ��롣
Set-Cookie �� Set-Cookie2 �Τɤ����Ȥä���褤�����������ߤΤȤ����� Set-Cookie �Ǥ����Ȼפ���
2003ǯ5��1��(������) �Τ������� > ��Set-Cookie2��
http://altba.com/bakera/hatomaru.aspx/ebi/topic/555
Ϣ�ܡ������ͥåȡ��ץ��ȥ�������2��HTTP��Hyper Text Transfer Protocol�ˡ�����
http://www.atmarkit.co.jp/fnetwork/rensai/netpro02/netpro01. ...
Cache-Control: no-cache
Pragma: no-cache
proxy ���ͳ�������˾������뤪���줬����Τǡ�html �ˤ�ʲ��ξ��������Ƥ����Τ�˾�ޤ�����Pragma �� HTTP 1.0 �ѡ�Cache-Control �� HTTP 1.1 �ѡ�ξ������Ƥ����д�����
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
HTTP/1.1: �إå��ե���������
http://www.studyinghttp.net/rfc_ja/2616/sec14.html#sec14.9
14.9 Cache-Control
Cache-Control ���̥إå��ե�����ɤϡ��ꥯ�����ȡ��쥹�ݥ�Ϣ����Τ��٤ƤΥ���å��ᥫ�˥��ब����ʤ���Фʤ�ʤ��ؼ��Ҥ��뤿��˻��Ѥ���롣����å��夬�ꥯ�����Ȥ�쥹�ݥ������ˤʤ�褦�˴��Ĥ����ʤ��褦�ʿ�������ꤹ�롣�����λؼ��ϡ���˥ǥե���ȤΥ���å����르�ꥺ��������ΤǤ��롣
- 172.16.4.1 ��
$ telnet 172.16.4.1 17216
Trying 172.16.4.1...
Connected to 172.16.4.1.
Escape character is '^]'.
CONNECT www.google.com:443 HTTP/1.1
Host: www.google.com
HTTP/1.0 200 Connection established
Connection closed by foreign host.
- 172.16.4.2 ��
$ telnet 172.16.4.2 17242
Trying 172.16.4.2...
Connected to 10.2.4.2.
Escape character is '^]'.
CONNECT www.google.com:443 HTTP/1.1
Host: www.google.com
HTTP/1.1 200 Connection established
Date: Tue, 15 Apr 2003 11:10:45 GMT
Age: 0
Connection: close
Via: HTTP/1.0 hostname (Traffic-Server/4.0.19 [c sSf ])
Connection closed by foreign host.
$ telnet 10.3.31.90 80
Trying 10.3.31.90...
Connected to 10.3.31.90.
Escape character is '^]'.
OPTIONS * HTTP/1.1
Host: localhost
HTTP/1.1 200 OK
Date: Wed, 16 Apr 2003 02:35:15 GMT
Server: Apache/1.3.26 (Unix) PHP/4.2.1
Content-Length: 0
Allow: GET, HEAD, OPTIONS, TRACE
Connection closed by foreign host.
Basic ǧ�ڤϡ�BASE 64�����ɤ��줿ǧ�ھ���� http �إå���������Ǥ��������
�ǽ餫�� Basic ǧ���ѤΥإå��� http �إå��˵��Ҥ��Ƥ����С�401 ���֤���뤳�Ȥʤ�����ƥ�Ĥ˥��������Ǥ���Ϥ����ʲ���Ĵ��������
RFC2671
ftp://ftp.isi.edu/in-notes/rfc2617.txt
�����ͥåȶ�δ��Ω��ԡ�HTTP�����ԡ�
http://www.atmarkit.co.jp/fnetwork/rensai/netpro02/netpro01. ...
Google �� rfc basic ǧ�� http �إå���������ҥåȡ�
CGI ��� Realm �����������ˡ
http://mtlab.ecn.fpu.ac.jp/WSM_1997/970427212810.html
����ϡ�ShellExecute �ʤɤǥ��ץꥱ������� IE ��ư����Ȥ����ɤ���ä� http �إå�����ꤹ��Ф褤�����Ȥ����Ȥ�������ư�������ʤɤǥꥯ�����ȥإå������Ǥ���гڤʤΤ�����IE �ΥС������ˤ��¸��������ͽ����
�������Ȼפä����ɡ�http://id:password@host/ �Ȥ��������ǥꥯ�����Ȥ���Ф�����ʤ������Ȼפä��������Ǥ������������ƥ�Ū�ˤϤ��ޤ��ɤ��ʤ�������ñ�ǤϤ��롣�ޤ� Basic ǧ�ڤʤ���̿����Ƹ���줿�������ޤ�狼��ʤ�������Ȥ����ˤ�äƤϤ���ǽ�ʬ�Ǥ��礦��