<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fgshun</author_name>
  <author_url>https://blog.hatena.ne.jp/fgshun/</author_url>
  <blog_title>銀月の符号</blog_title>
  <blog_url>https://fgshun.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>urllib2 モジュールで http プロトコルを使用する際選べる（選ばれる）メソッドは GET か POST 。では HEAD で十分な時は http モジュールレベルまで戻らなくてはいけないのだろうか？ もしくは問答無用で GET して対象サーバーにはごめんなさいで済ませるのか？ さすがにこれはない、はず。コード読んでみた。 urllib2.Request.get_method メソッドは has.data() の真偽値を見て GET か POST を返すようになっている。 AbstractHTTPHandler.do_open メソッドはこの戻り値を第1引数にして、 http_clas…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffgshun.hatenablog.com%2Fentry%2F20081025%2F1224905541&quot; title=&quot; urllib2 で HEAD 要求 - 銀月の符号&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-10-25 12:32:21</published>
  <title> urllib2 で HEAD 要求</title>
  <type>rich</type>
  <url>https://fgshun.hatenablog.com/entry/20081025/1224905541</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
