<?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; ネットワーク</title>
	<atom:link href="http://saikyoline.jp/weblog/category/%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af/feed" rel="self" type="application/rss+xml" />
	<link>http://saikyoline.jp/weblog</link>
	<description>コンピュータに関係あることとか、ないこととか。</description>
	<lastBuildDate>Fri, 04 May 2012 15:44:45 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>URIのスキームを省略すると。</title>
		<link>http://saikyoline.jp/weblog/2011/07/12/234242.html</link>
		<comments>http://saikyoline.jp/weblog/2011/07/12/234242.html#comments</comments>
		<pubDate>Tue, 12 Jul 2011 14:42:42 +0000</pubDate>
		<dc:creator>yoshuki</dc:creator>
				<category><![CDATA[インターネット]]></category>
		<category><![CDATA[ネットワーク]]></category>

		<guid isPermaLink="false">http://saikyoline.jp/weblog/?p=1241</guid>
		<description><![CDATA[http:は省略すれば空気読む &#8211; komagata RFC 2396にちゃんと書いてあるらしい。 シラナカッタ！ ということで読んでみました。 5.2. Resolving Relative Referen [...]]]></description>
			<content:encoded><![CDATA[<blockquote cite="http://docs.komagata.org/4828" title="http:は省略すれば空気読む - komagata"><p><a href="http://docs.komagata.org/4828">http:は省略すれば空気読む &#8211; komagata</a></p>
<p>RFC 2396にちゃんと書いてあるらしい。</p></blockquote>
<p>シラナカッタ！</p>
<p>ということで読んでみました。</p>
<p>5.2. Resolving Relative References to Absolute Form</p>
<p>のところ、</p>
<blockquote cite="http://www.ietf.org/rfc/rfc2396.txt" title="rfc2396.txt"><p><a href="http://www.ietf.org/rfc/rfc2396.txt"></a></p>
<p>3) If the scheme component is defined, indicating that the reference starts with a scheme name, then the reference is interpreted as an absolute URI and we are done. Otherwise, the reference URI&#8217;s scheme is inherited from the base URI&#8217;s scheme component. </p></blockquote>
<p>ここのことかー！<br />
いやー、ちゃんと「ここで決められてる」って分かるのは気持ちがいいですね。</p>
]]></content:encoded>
			<wfw:commentRss>http://saikyoline.jp/weblog/2011/07/12/234242.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTPステータスコードの定義。</title>
		<link>http://saikyoline.jp/weblog/2009/08/12/235927.html</link>
		<comments>http://saikyoline.jp/weblog/2009/08/12/235927.html#comments</comments>
		<pubDate>Wed, 12 Aug 2009 14:59:27 +0000</pubDate>
		<dc:creator>yoshuki</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[ネットワーク]]></category>

		<guid isPermaLink="false">http://saikyoline.jp/weblog/?p=823</guid>
		<description><![CDATA[rfc2068.txt HTTP status codes are extensible. HTTP applications are not required to understand the meaning of  [...]]]></description>
			<content:encoded><![CDATA[<blockquote cite="http://www.ietf.org/rfc/rfc2068.txt" title=""><p><a href="http://www.ietf.org/rfc/rfc2068.txt">rfc2068.txt</a></p>
<p>HTTP status codes are extensible. HTTP applications are not required to understand the meaning of all registered status codes, though such understanding is obviously desirable. However, applications MUST understand the class of any status code, as indicated by the first digit, and treat any unrecognized response as being equivalent to the x00 status code of that class, with the exception that an unrecognized response MUST NOT be cached.</p></blockquote>
<p>冒頭の&quot;HTTP status codes are extensible.&quot;の解釈について。<br />
コードの１桁目（クラス）に合ってれば、その後はアプリケーションで定義してしまってもいいものか迷ってます。<br />
ここで定義されている401～415までは、TCP/IPのwell-known portみたいなもので、ここにない416～499までは使っちゃってもいいものなのかと。</p>
<p>なんでこんなこと考えてるかというと、Flexの<a href="http://livedocs.adobe.com/flex/3/langref/flash/net/FileReference.html#upload()">FileReference#upload()</a>で起こる<a href="http://livedocs.adobe.com/flex/3/langref/flash/events/HTTPStatusEvent.html">HTTPStatusEvent</a>がレンスポンスのステータスコードしかくれないもんで、アップロードされたファイルをアプリで弾いたりした場合に、（すでにあるステータスコード以上に）詳しいことをクライアントで知る術がないのです。ふつうにformで投げればrjs使ってクライアントに表示などできるのですが、アップロード前にファイルサイズを知りたいという要件があるためにこいつに頼らざるをえない状態。responseHeadersにAIRアイコンが付いてるのがうらめしい。</p>
]]></content:encoded>
			<wfw:commentRss>http://saikyoline.jp/weblog/2009/08/12/235927.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ステータスコード。</title>
		<link>http://saikyoline.jp/weblog/2008/08/14/010357.html</link>
		<comments>http://saikyoline.jp/weblog/2008/08/14/010357.html#comments</comments>
		<pubDate>Wed, 13 Aug 2008 16:03:57 +0000</pubDate>
		<dc:creator>yoshuki</dc:creator>
				<category><![CDATA[ネットワーク]]></category>

		<guid isPermaLink="false">http://saikyoline.jp/weblog/?p=543</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<pre class="code"><code>HTTP/1.1 200 OK
Status: 200 OK</code></pre>
<p>この２つについて聞かれて、うまく答えられなかったので調べたメモ。</p>
<blockquote cite="http://tools.ietf.org/html/rfc2616#section-6.1" title="RFC 2616 - Hypertext Transfer Protocol -- HTTP/1.1"><p><a href="http://tools.ietf.org/html/rfc2616#section-6.1">RFC 2616 &#8211; Hypertext Transfer Protocol &#8212; HTTP/1.1</a></p>
<p>Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF</p></blockquote>
<blockquote cite="http://tools.ietf.org/html/rfc3875#section-6.3.3" title="RFC 3875 - The Common Gateway Interface (CGI) Version 1.1"><p><a href="http://tools.ietf.org/html/rfc3875#section-6.3.3">RFC 3875 &#8211; The Common Gateway Interface (CGI) Version 1.1</a></p>
<p>Status = &quot;Status:&quot; status-code SP reason-phrase NL</p></blockquote>
<p>後者はCGIのヘッダーフィールドなのかー。</p>
]]></content:encoded>
			<wfw:commentRss>http://saikyoline.jp/weblog/2008/08/14/010357.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>急に公開鍵認証が出来なくなったが解決した話。</title>
		<link>http://saikyoline.jp/weblog/2008/06/19/151720.html</link>
		<comments>http://saikyoline.jp/weblog/2008/06/19/151720.html#comments</comments>
		<pubDate>Thu, 19 Jun 2008 06:17:20 +0000</pubDate>
		<dc:creator>yoshuki</dc:creator>
				<category><![CDATA[ネットワーク]]></category>

		<guid isPermaLink="false">http://saikyoline.jp/weblog/?p=529</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>昨日あたりからDreamHostのsshで公開鍵認証ができなくなって面倒なことになっていたのですが、</p>
<blockquote cite="http://blog.champierre.com/archives/716" title="COMPROMISED な公開鍵では ssh アクセスが許されない : 僕は発展途上技術者"><p><a href="http://blog.champierre.com/archives/716">COMPROMISED な公開鍵では ssh アクセスが許されない : 僕は発展途上技術者</a></p>
<p>久々技術的な話題のエントリーを。</p></blockquote>
<p>こちらのエントリーを見て、もしかしてと思いリモートで自分の鍵を確認したところ、まさにこれでした。<br/><br />
でもローカルに「ssh-vulnkey」というコマンドがなかったのでさらに探してみたら、こんなエントリが。</p>
<blockquote cite="http://d.hatena.ne.jp/ksaito11/20080518" title="debianのopensslとopensshに脆弱性 - ksaitoの日記"><p><a href="http://d.hatena.ne.jp/ksaito11/20080518">debianのopensslとopensshに脆弱性 &#8211; ksaitoの日記</a></p>
<p>Debianのセキュリティー勧告によると、DebianとUbuntuなどの派生ディストリビューションでopensslパッケージの不具合によりopensshのssh-keygenで生成した鍵の作り直しが必要になるようです。</p></blockquote>
<p>1ヶ月前の話かー。ドリホもこれに対応したところだったのかもしれない。<br/><br />
パーミッションやらファイル名やらをしつこく見直してもわからなくてあきらめかけていたところだったので、助かりました。</p>
]]></content:encoded>
			<wfw:commentRss>http://saikyoline.jp/weblog/2008/06/19/151720.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTPレスポンスにゴミが混じる。</title>
		<link>http://saikyoline.jp/weblog/2007/02/01/011837.html</link>
		<comments>http://saikyoline.jp/weblog/2007/02/01/011837.html#comments</comments>
		<pubDate>Wed, 31 Jan 2007 16:18:37 +0000</pubDate>
		<dc:creator>yoshuki</dc:creator>
				<category><![CDATA[ネットワーク]]></category>

		<guid isPermaLink="false">http://saikyoline.jp/weblog/?p=373</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>と思っていたら、HTTP/1.1の仕様だった。</p>
<blockquote cite="http://tdiary.ishinao.net/20060622.html" title="いしなお! - Amazon WebサービスにHTTP/1.1でアクセスするとゴミが出る"><p><a href="http://tdiary.ishinao.net/20060622.html">いしなお! &#8211; Amazon WebサービスにHTTP/1.1でアクセスするとゴミが出る</a></p>
<p>Transfer-Encoding: chunkedだからか！　これで正常なのね。っつーか、HTTP/1.1で送るならば受信側がちゃんと対応しないといけないのね。HTTP/1.1のRFCちゃんと読んでおこう。</p></blockquote>
<p>くわぁー。こちらを過去に読んだ記憶がある。なんてこった。<br/><br />
あと、HTTP/1.1だとConnection: closeしないとサーバがすぐにコネクションを切ってくれないってのも忘れててわりとハマるんだよねー。おれだけかもしれないけど。</p>
]]></content:encoded>
			<wfw:commentRss>http://saikyoline.jp/weblog/2007/02/01/011837.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ネットワーク（ブロードキャスト）アドレスを計算する。(IPv4)</title>
		<link>http://saikyoline.jp/weblog/2006/12/15/235509.html</link>
		<comments>http://saikyoline.jp/weblog/2006/12/15/235509.html#comments</comments>
		<pubDate>Fri, 15 Dec 2006 14:55:09 +0000</pubDate>
		<dc:creator>yoshuki</dc:creator>
				<category><![CDATA[ネットワーク]]></category>

		<guid isPermaLink="false">http://saikyoline.jp/weblog/?p=356</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<pre class="code"><code>$ ipcalc 10.0.123.234/255.255.192.0
Address:   10.0.123.234         00001010.00000000.01 111011.11101010
Netmask:   255.255.192.0 = 18   11111111.11111111.11 000000.00000000
Wildcard:  0.0.63.255           00000000.00000000.00 111111.11111111
=&gt;
Network:   10.0.64.0/18         00001010.00000000.01 000000.00000000
HostMin:   10.0.64.1            00001010.00000000.01 000000.00000001
HostMax:   10.0.127.254         00001010.00000000.01 111111.11111110
Broadcast: 10.0.127.255         00001010.00000000.01 111111.11111111
Hosts/Net: 16382                 Class A, Private Internet</code></pre>
<p>こ、こんな便利なコマンドがあったのかーッッ！！<br/><br />
<br/><br />
いままでWindowsの電卓使って（たまに紙に手で書いて）計算していたよ！<br/><br />
もう「255.255.192.0」とか半端なサブネットマスクに憤りを感じなくてもいいのか！</p>
]]></content:encoded>
			<wfw:commentRss>http://saikyoline.jp/weblog/2006/12/15/235509.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>勝手にリダイレクトはダメなんだと。</title>
		<link>http://saikyoline.jp/weblog/2006/11/02/003504.html</link>
		<comments>http://saikyoline.jp/weblog/2006/11/02/003504.html#comments</comments>
		<pubDate>Wed, 01 Nov 2006 15:35:04 +0000</pubDate>
		<dc:creator>yoshuki</dc:creator>
				<category><![CDATA[ネットワーク]]></category>

		<guid isPermaLink="false">http://saikyoline.jp/weblog/?p=339</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<blockquote cite="http://www.ietf.org/rfc/rfc2616.txt" title="Hypertext Transfer Protocol -- HTTP/1.1"><p><a href="http://www.ietf.org/rfc/rfc2616.txt">Hypertext Transfer Protocol &#8212; HTTP/1.1</a></p>
<p>the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user</p></blockquote>
<p>HTTP/1.1でレスポンスコード</p>
<ul>
<li>301 Moved Permanently</li>
<li>302 Found</li>
<li>307 Temporary Redirect</li>
</ul>
<p>を受け取ったときにはリダイレクトする前にユーザに確認しないとダメだよというお話。<br/><br />
これでいつ街角でHTTP/1.1のリダイレクトについて質問されても答えられるよママン。</p>
]]></content:encoded>
			<wfw:commentRss>http://saikyoline.jp/weblog/2006/11/02/003504.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TCP/IPとHTTPとメールプロトコルと・・・。</title>
		<link>http://saikyoline.jp/weblog/2005/09/23/013509.html</link>
		<comments>http://saikyoline.jp/weblog/2005/09/23/013509.html#comments</comments>
		<pubDate>Thu, 22 Sep 2005 16:35:09 +0000</pubDate>
		<dc:creator>yoshuki</dc:creator>
				<category><![CDATA[ネットワーク]]></category>

		<guid isPermaLink="false">http://saikyoline.jp/weblog/?p=110</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>最近メールプロトコル編を読み終えたので、その他も含めて。<br/><br />
表紙のデザインや、パッと見(イラストやら文字量やら)の印象と反して、このシリーズは内容がしっかりとしている。<br/><br />
TCP/IP編はネットワークってなに？から、TCP/IPの上に乗っかる上位のプロトコルなどについて広く浅く解説されている。まさに入門書という感じ。<br/><br />
HTTP編はバージョン1.0と1.1両方に対して、それぞれのヘッダの意味がひとつひとつ丁寧に解説されている。ブラウザの戻るボタン対策(キャッシュ云々のはなし)もスッキリした解決策を見つけることができた。<br/><br />
その流れはメールプロトコル編でも同じで、この2冊があればでWebブラウザもメーラもTelnetでまかなえるようになる(って、んなこたないか)。<br/><br />
ともあれ、ソケット開いて直にHTTPを話したり、SMTPでメール送信なんてこともできるのはいざというときに役にたつ。リファレンス的に手元に置いておくのもアリ。<br/><br />
そんな場面に遭遇しなくても、とりあえず「インターネットがどうなってるか」を知るには良い本ではないかと思う。<br/><br />
<br/></p>
<table style="border: 1px dotted #999999; font-size: 14px; text-align: left;">
<tr>
<td><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4798108197/saikyoline-22/ref=nosim/"><img src="http://images.amazon.com/images/P/4798108197.09._SCMZZZZZZZ_.jpg" width="112" height="160" alt="今夜わかるTCP/IP" title="今夜わかるTCP/IP" style="border: 0px; margin: 5px 10px 5px 5px;"/></a></td>
<td><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4798108197/saikyoline-22/ref=nosim/" style="text-decoration: none;"><span style="font-weight: bold;">今夜わかるTCP/IP</span><br/><span>翔泳社(2004-12-09)</span><br/>
<ul style="margin-top: 3px; margin-bottom: 3px;">
<li style="list-style: none inside;">(著)上野 宣</li>
</ul>
<p><span>新品価格：￥ 2,415</span><br/><span>ASIN：4798108197</span></a></td>
</tr>
</table>
<hr/>
<table style="border: 1px dotted #999999; font-size: 14px; text-align: left;">
<tr>
<td><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4798108200/saikyoline-22/ref=nosim/"><img src="http://images.amazon.com/images/P/4798108200.09._SCMZZZZZZZ_.jpg" width="98" height="140" alt="今夜わかるHTTP" title="今夜わかるHTTP" style="border: 0px; margin: 5px 10px 5px 5px;"/></a></td>
<td><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4798108200/saikyoline-22/ref=nosim/" style="text-decoration: none;"><span style="font-weight: bold;">今夜わかるHTTP</span><br/><span>翔泳社(2004-12-09)</span><br/>
<ul style="margin-top: 3px; margin-bottom: 3px;">
<li style="list-style: none inside;">(著)上野 宣</li>
</ul>
<p><span>新品価格：￥ 2,520</span><br/><span>ASIN：4798108200</span></a></td>
</tr>
</table>
<hr/>
<table style="border: 1px dotted #999999; font-size: 14px; text-align: left;">
<tr>
<td><a href="http://www.amazon.co.jp/exec/obidos/ASIN/479810941X/saikyoline-22/ref=nosim/"><img src="http://images.amazon.com/images/P/479810941X.01._SCMZZZZZZZ_.jpg" width="113" height="160" alt="今夜わかるメールプロトコル" title="今夜わかるメールプロトコル" style="border: 0px; margin: 5px 10px 5px 5px;"/></a></td>
<td><a href="http://www.amazon.co.jp/exec/obidos/ASIN/479810941X/saikyoline-22/ref=nosim/" style="text-decoration: none;"><span style="font-weight: bold;">今夜わかるメールプロトコル</span><br/><span>翔泳社(2005-06-17)</span><br/>
<ul style="margin-top: 3px; margin-bottom: 3px;">
<li style="list-style: none inside;">(著)上野 宣</li>
</ul>
<p><span>新品価格：￥ 2,625</span><br/><span>ASIN：479810941X</span></a></td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://saikyoline.jp/weblog/2005/09/23/013509.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XMLのMIMEタイプ</title>
		<link>http://saikyoline.jp/weblog/2005/07/27/010044.html</link>
		<comments>http://saikyoline.jp/weblog/2005/07/27/010044.html#comments</comments>
		<pubDate>Tue, 26 Jul 2005 16:00:44 +0000</pubDate>
		<dc:creator>yoshuki</dc:creator>
				<category><![CDATA[ネットワーク]]></category>

		<guid isPermaLink="false">http://saikyoline.jp/weblog/?p=84</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>「application/xml」と「text/xml」の違いが気になってしまったので、調べてみました。<br />
で、コレに言及しているのが「<a href="http://www.ietf.org/rfc/rfc3023.txt">RFC 3023</a>」(RFC 2376は3023と<a href="http://www.ietf.org/iesg/1rfc_index.txt">差し替えられて廃止</a>になっている)</p>
<p>5ページの真ん中あたりの<br />
<blockquote>Text/xml and application/xml behave differently when the charset parameter is not explicitly specified.</p></blockquote>
<p>ヘッダでキャラクタセットが指定されていない時の挙動が違うらしい。</p>
<p>「text/xml」は<br />
「8.5 Text/xml with Omitted Charset」<br />
キャラクタセットが指定されていないと「US-ASCII(ISO-8859-1じゃなくて)」と見なされる(ドキュメント内の宣言(encoding)は無視される)。</p>
<p>「application/xml」は<br />
「8.9 Application/xml with Omitted Charset and UTF-16 XML MIME Entity」<br />
BOMがあればUTF-16として、<br />
「8.10 Application/xml with Omitted Charset and UTF-8 Entity」<br />
BOMがなければUTF-8として、<br />
「8.11 Application/xml with Omitted Charset and Internal Encoding Declaration」<br />
BOMがなく、ドキュメント内の宣言(encoding)があれば、それが適用される。</p>
<p>のだそうな。(8.10と8.11って解釈の順番が逆じゃね？)</p>
<p>とりあえず、いずれもキャラクタセットをつけるのは「<strong>STRONGLY RECOMMENDED</strong>」となっている(3.1と3.2)ので、UTF-8を使ってるなら
<pre class="code"><code>Content-type: text/xml; charset=&quot;UTF-8&quot;
Content-type: application/xml; charset=&quot;UTF-8&quot;
</code></pre>
<p>を投げとけばいいか。</p>
]]></content:encoded>
			<wfw:commentRss>http://saikyoline.jp/weblog/2005/07/27/010044.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

