{"id":1851,"date":"2020-06-04T13:47:12","date_gmt":"2020-06-04T04:47:12","guid":{"rendered":"https:\/\/qol-kk.com\/wp2\/?p=1851"},"modified":"2020-06-04T13:47:12","modified_gmt":"2020-06-04T04:47:12","slug":"post-1851","status":"publish","type":"post","link":"https:\/\/qol-kk.com\/wp2\/blog\/2020\/06\/04\/post-1851\/","title":{"rendered":"\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3067\u30a8\u30e9\u30fc\u767a\u751f\uff1acURL error 1: Received HTTP\/0.9 when not allowed (see https:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)"},"content":{"rendered":"<h2>\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3067\u30a8\u30e9\u30fc\u767a\u751f\uff1acURL error 1: Received HTTP\/0.9 when not allowed (see https:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)<\/h2>\n<p>\u5546\u54c1\u30ec\u30d3\u30e5\u30fc\u306e\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u4e2d\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3002<\/p>\n<p>\u3069\u3046\u3084\u3089\u5176\u3005\u306e\u30a2\u30d7\u30ea\u306e\u4f9d\u5b58\u6027\u306b\u3088\u308b\u30a8\u30e9\u30fc\u306e\u69d8\u5b50\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/guzzle\/guzzle\/issues\/2617\">\u53c2\u8003\u306b\u3057\u305f\u30b5\u30a4\u30c8<\/a><\/p>\n<h3>Goutte\u306e\u5b9f\u884c\u4e2d\u306bcURL\u304c\u9589\u3058\u3089\u308c\u3066\u3044\u306a\u3044\u4e8b\u304c\u539f\u56e0<\/h3>\n<p>\u53c2\u8003\u30b5\u30a4\u30c8\u3092\u8aad\u307f\u53d6\u308b\u3068\u3001\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u304c\u306a\u3093\u3068\u306a\u304f\u308f\u304b\u3063\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>cURL\u3092\u65e7\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u306a\u3044\u3068\u304b\u30012\u3064\u306e\u30a2\u30d7\u30ea\u306e\u95a2\u4fc2\u6027\u306b\u539f\u56e0\u304c\u3042\u308b\u69d8\u3067\u3059\u3002<\/p>\n<h3>vendor\/guzzlehttp\/guzzle\/src\/Handler\/CurlFactory.php\u66f8\u63db\u3048\u3067\u56de\u907f\u53ef\u80fd<\/h3>\n<p>\u65e7\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306a\u3093\u3066\u4e8b\u306f\u51fa\u6765\u308c\u3070\u56de\u907f\u3057\u305f\u3044\u30e2\u30ce\u3002<\/p>\n<p>\u305d\u306e\u8fba\u3082\u53c2\u8003\u30b5\u30a4\u30c8\u306b\u8a18\u8f09\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<div class=\"borderBox\">\n<p>CurlFactory.php\u3092\u66f8\u304d\u63db\u3048\u308c\u3070OK<\/p>\n<\/div>\n<p>\u79c1\u3082\u7121\u4e8b\u3053\u306e\u65b9\u6cd5\u3067\u89e3\u6c7a\u3057\u307e\u3057\u305f\u3002<\/p>\n<h3>\u53c2\u8003\u30b9\u30af\u30ea\u30d7\u30c8<\/h3>\n<p>vendor\/guzzlehttp\/guzzle\/src\/Handler\/CurlFactory.php 65\u884c\u76ee\uff5e78\u884c\u76ee\u8fba\u308a<\/p>\n<pre class=\"lang:default decode:true\">    public function release(EasyHandle $easy)\r\n    {\r\n        $resource = $easy-&gt;handle;\r\n        unset($easy-&gt;handle);\r\n\r\n        if (count($this-&gt;handles) &gt;= $this-&gt;maxHandles) {\r\n            curl_close($resource);\r\n        } else {\r\n            \/\/ Remove all callback functions as they can hold onto references\r\n            \/\/ and are not cleaned up by curl_reset. Using curl_setopt_array\r\n            \/\/ does not work for some reason, so removing each one\r\n            \/\/ individually.\r\n            curl_setopt($resource, CURLOPT_HEADERFUNCTION, null);\r\n            curl_setopt($resource, CURLOPT_READFUNCTION, null);\r\n            curl_setopt($resource, CURLOPT_WRITEFUNCTION, null);\r\n            curl_setopt($resource, CURLOPT_PROGRESSFUNCTION, null);\r\n            curl_reset($resource);\r\n            $this-&gt;handles[] = $resource;\r\n        }\r\n    }<\/pre>\n<p>\u3053\u308c\u3092\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">    public function release(EasyHandle $easy)\r\n    {\r\n        $resource = $easy-&gt;handle;\r\n        unset($easy-&gt;handle);\r\n\r\n        curl_close($resource);\r\n    }<\/pre>\n<p>\u203b \/* *\/\u3067\u6bba\u3057\u3066\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u5224\u308a\u6613\u304f\u6d88\u53bb\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u7ffb\u8a33\u6a5f\u304c\u7121\u304b\u3063\u305f\u3089\u4fee\u6b63\u3067\u304d\u306a\u304b\u3063\u305f\u306e\u306f\u9593\u9055\u3044\u306a\u3044\u3002<\/p>\n<p>\u82f1\u8a9e\u52c9\u5f37\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3067\u30a8\u30e9\u30fc\u767a\u751f\uff1acURL error 1: Received HTTP\/0.9 when not allowed (see https:\/\/curl.haxx.se\/libcurl\/c\/libcurl-err [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":944,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[34],"tags":[670,671,669,153,98,97,379,47,45],"class_list":["post-1851","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php-memorandum","tag-curl","tag-curlfactory-php","tag-goutte","tag-laravel","tag-php","tag-97","tag-379","tag-47","tag-45"],"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_publicize_connections":[],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2018\/11\/laravel_logo.png","_links":{"self":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/1851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/comments?post=1851"}],"version-history":[{"count":0,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/1851\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media\/944"}],"wp:attachment":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media?parent=1851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/categories?post=1851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/tags?post=1851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}