<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>swfz</author_name>
  <author_url>https://blog.hatena.ne.jp/swfz/</author_url>
  <blog_title>notebook</blog_title>
  <blog_url>https://swfz.hatenablog.com/</blog_url>
  <categories>
    <anon>shellscript</anon>
  </categories>
  <description>shellscriptなどでcurlを使ってjsonをPOSTする場合 エスケープや変数展開だったりと気にすることが多く毎度躓いてるなーと思っていたのですが@ + ファイルorヒアドキュメントを使って書くと良さそうです もっと早く気づきたかった・・・ 参考 bash - Curl with multiline of JSON - Stack Overflow stackoverflow.com ヒアドキュメント ローカルに適当なrackサーバを用意してます piyo_number=100 curl -XPOST http://127.0.0.1:3000 \ -H &quot;Content-Type:…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fswfz.hatenablog.com%2Fentry%2F2019%2F07%2F07%2F035341&quot; title=&quot;curlを使うときのデータの渡し方 - notebook&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>2019-07-07 03:53:41</published>
  <title>curlを使うときのデータの渡し方</title>
  <type>rich</type>
  <url>https://swfz.hatenablog.com/entry/2019/07/07/035341</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
