<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>y_hakoiri</author_name>
  <author_url>https://blog.hatena.ne.jp/y_hakoiri/</author_url>
  <blog_title>箱のプログラミング日記。</blog_title>
  <blog_url>https://www.y-hakopro.com/</blog_url>
  <categories>
    <anon>curl</anon>
  </categories>
  <description>最近curlのPOSTリクエストでAPIの検証をすることが多いのだけど、最初数あるオプションの使い分けがいまいちよくわかっていなかったのでまとめる。 -d オプション --dataを短く表記したもの。 フォーマット curl -d 'name=admin&amp;shoesize=12' http://example.com/ こうやって&amp;でデータを羅列しても良いし、 curl -d name=admin -d shoesize=12 http://example.com/ -dをいくつも並べて送信しても良い。 ファイルデータをそのまま渡したい場合は curl -d @filename http://…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.y-hakopro.com%2Fentry%2Fcurl-post-options&quot; title=&quot;curlの-dやら-Fやらがよく分からない - 箱のプログラミング日記。&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>https://cdn.user.blog.st-hatena.com/default_entry_og_image/154494100/1572670055576354</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-03-02 22:00:00</published>
  <title>curlの-dやら-Fやらがよく分からない</title>
  <type>rich</type>
  <url>https://www.y-hakopro.com/entry/curl-post-options</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
