<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>naka_no_mura</author_name>
  <author_url>https://blog.hatena.ne.jp/naka_no_mura/</author_url>
  <blog_title>コードロード</blog_title>
  <blog_url>https://naka-no-mura.hateblo.jp/</blog_url>
  <categories>
    <anon>php</anon>
  </categories>
  <description>課題 PHPで $name = (string)filter_input(INPUT_POST, 'name') でPOSTの値を取得できない。 原因 $_POST() または (キャスト)filter_input(INPUT_POST, 'key') では、そもそも application/json を取得できない。 公式リファレンスでは下記のように書いてある。 Content-Type に application/x-www-form-urlencoded あるいは multipart/form-data を用いた HTTP リクエストで、 HTTP POST メソッドから現在のスクリプト…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnaka-no-mura.hateblo.jp%2Fentry%2Fjson_post&quot; title=&quot;【PHP】Content-Typeがapplication/jsonのPOSTから値を取得する - コードロード&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://s3-us-west-2.amazonaws.com/secure.notion-static.com/7b8562d2-99d2-4cea-ae50-cc497867fc7a/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88_2022-01-14_13.42.50.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-01-14 13:54:28</published>
  <title>【PHP】Content-Typeがapplication/jsonのPOSTから値を取得する</title>
  <type>rich</type>
  <url>https://naka-no-mura.hateblo.jp/entry/json_post</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
