{"author_url":"https://blog.hatena.ne.jp/naka_no_mura/","width":"100%","author_name":"naka_no_mura","url":"https://naka-no-mura.hateblo.jp/entry/json_post","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnaka-no-mura.hateblo.jp%2Fentry%2Fjson_post\" title=\"\u3010PHP\u3011Content-Type\u304capplication/json\u306ePOST\u304b\u3089\u5024\u3092\u53d6\u5f97\u3059\u308b - \u30b3\u30fc\u30c9\u30ed\u30fc\u30c9\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u30b3\u30fc\u30c9\u30ed\u30fc\u30c9","title":"\u3010PHP\u3011Content-Type\u304capplication/json\u306ePOST\u304b\u3089\u5024\u3092\u53d6\u5f97\u3059\u308b","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","description":"\u8ab2\u984c PHP\u3067 $name = (string)filter_input(INPUT_POST, 'name') \u3067POST\u306e\u5024\u3092\u53d6\u5f97\u3067\u304d\u306a\u3044\u3002 \u539f\u56e0 $_POST() \u307e\u305f\u306f (\u30ad\u30e3\u30b9\u30c8)filter_input(INPUT_POST, 'key') \u3067\u306f\u3001\u305d\u3082\u305d\u3082 application/json \u3092\u53d6\u5f97\u3067\u304d\u306a\u3044\u3002 \u516c\u5f0f\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3067\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u3042\u308b\u3002 Content-Type \u306b application/x-www-form-urlencoded \u3042\u308b\u3044\u306f multipart/form-data \u3092\u7528\u3044\u305f HTTP \u30ea\u30af\u30a8\u30b9\u30c8\u3067\u3001 HTTP POST \u30e1\u30bd\u30c3\u30c9\u304b\u3089\u73fe\u5728\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u2026","type":"rich","categories":["php"],"blog_url":"https://naka-no-mura.hateblo.jp/","published":"2022-01-14 13:54:28","height":"190","version":"1.0","provider_url":"https://hatena.blog"}