{"author_url":"https://blog.hatena.ne.jp/tanakahisateru/","author_name":"tanakahisateru","type":"rich","title":"PHP\u3067file_get_contents\u4f7f\u3063\u305fHTTP\u63a5\u7d9a\u304c\u30a8\u30e9\u30fc\u306a\u306e\u304b\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u306a\u306e\u304b\u3092\u5224\u5225\u3059\u308b","published":"2011-02-24 16:51:16","blog_title":"\u306a\u3093\u305f\u3089\u30ce\u30fc\u30c8\u7b2c\u4e09\u671f\u30d9\u30fc\u30bf","version":"1.0","height":"190","categories":["PHP"],"url":"https://tanakahisateru.hatenablog.jp/entry/20110224/1298533876","width":"100%","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftanakahisateru.hatenablog.jp%2Fentry%2F20110224%2F1298533876\" title=\"PHP\u3067file_get_contents\u4f7f\u3063\u305fHTTP\u63a5\u7d9a\u304c\u30a8\u30e9\u30fc\u306a\u306e\u304b\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u306a\u306e\u304b\u3092\u5224\u5225\u3059\u308b - \u306a\u3093\u305f\u3089\u30ce\u30fc\u30c8\u7b2c\u4e09\u671f\u30d9\u30fc\u30bf\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://tanakahisateru.hatenablog.jp/","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","description":"PHP\u3067\u30b5\u30fc\u30d0-\u30b5\u30fc\u30d0\u9593\u3067REST-API\u3092\u4f7f\u3046\u3068\u304d\u3001file_get_contents\u3092\u4f7f\u3046\u306e\u304c\u7c21\u5358\u306a\u3093\u3067\u3059\u304c\u3001\u30a8\u30e9\u30fc\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u5834\u5408\u3001\u305d\u306e\u72b6\u6cc1\u3092\u3069\u3046\u89e3\u91c8\u3057\u305f\u3089\u3044\u3044\u306e\u304b\u3068\u3044\u3046\u8aac\u660e\u304c\u3069\u3046\u3082\u3042\u3044\u307e\u3044\u306a\u6c17\u304c\u3057\u305f\u306e\u3067\u3001\u3061\u3087\u3063\u3068\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002\u30ec\u30b9\u30dd\u30f3\u30b9\u30b3\u30fc\u30c9200\u3068\u30a8\u30e9\u30fc\u3001\u305d\u308c\u3068\u3001\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3092\u5224\u5225\u3059\u308b\u65b9\u6cd5\u306f\u3001\u3069\u3046\u3084\u3089\u3053\u3093\u306a\u611f\u3058\u307f\u305f\u3044\u3067\u3059\u3002 <?php $data = @file_get_contents('http://hostname/resouce', false, stream_context_create(array( 'http' => array( 'timeout'=>10 // \u65e9\u2026"}