<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shamoshamo</author_name>
  <author_url>https://blog.hatena.ne.jp/shamoshamo/</author_url>
  <blog_title>しゃもしゃも日記</blog_title>
  <blog_url>https://shamoshamo.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>curlモジュールを使うことも検討したけど データの先頭が@だったらファイル名指定として扱う などという馬鹿げた仕様が怖くて、でも、 read/write callbackを使うやり方の例が見つけられず 結局、標準的な書き方で。同様の処理をしてくれるライブラリは既存だと思われる。以前は、stream_context_createtとfopenを使っていたけれど、 この方法だとリクエストをメモリにいったん保持する必要があって、 大きなファイルを扱いづらいので、今回の方法に変更。エラーチェック、SSL対応などは、若干省略気味。 &lt;?php $url = &quot;http://hostname/path/…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshamoshamo.hatenadiary.org%2Fentry%2F20080502&quot; title=&quot;ファイル添付でHTTP POST（PHP） - しゃもしゃも日記&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-05-02 00:00:00</published>
  <title>ファイル添付でHTTP POST（PHP）</title>
  <type>rich</type>
  <url>https://shamoshamo.hatenadiary.org/entry/20080502</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
