<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>narusase</author_name>
  <author_url>https://blog.hatena.ne.jp/narusase/</author_url>
  <blog_title>Narusaseの日記 -ハニポってどうよ？(仮)-</blog_title>
  <blog_url>https://narusase.hatenadiary.org/</blog_url>
  <categories>
    <anon>メモ</anon>
  </categories>
  <description>PHPのfile_get_contents関数は、通常のファイルだけでなくWeb上のファイルも取得できる便利な関数ですが、特定の条件でおかしな動作をすることが判りました。具体的には、リクエストに対する返答でHTTP1.1の機能であるTransfer-Encoding: chunked を用いた場合に8000バイト以上のデータを正しく解釈できず、返り値の先頭にデータのバイト数を表す(1F2Bのような)4桁の文字列が付与されたり想定される内容と異なる形で表示されてしまう問題があります。また、これとは別にPHPのheader関数を用いて、HTTPヘッダーを'HTTP/1.1 200 OK' などの様…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnarusase.hatenadiary.org%2Fentry%2F20101216%2Fp1&quot; title=&quot; PHPのfile_get_contentsのバグにより想定外の文字列が取得される問題＆header関数により指定していないHTTPヘッダーが書き換わる問題 - Narusaseの日記 -ハニポってどうよ？(仮)-&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>2010-12-16 00:00:00</published>
  <title> PHPのfile_get_contentsのバグにより想定外の文字列が取得される問題＆header関数により指定していないHTTPヘッダーが書き換わる問題</title>
  <type>rich</type>
  <url>https://narusase.hatenadiary.org/entry/20101216/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
