åç½®ã å¤é¨APIãå¼ã³åºãå®è£ ãè¡ãéã«ãç¨æããã¦ãããµã¼ãã¼ã®ã¢ã¸ã¥ã¼ã«ããã©ãã©ã§curlã使ç¨ã§ããªãæ¡ä»¶ã ã£ãã®ã§ãfile_get_contentsã使ç¨ãå¤é¨APIã§å¼ã³åºãã®ã«ããã£ãã®ã§ã¡ã¢çã«è¨è¼ãã¦ããã ç°å¢ã¯ php7.2 fuelphp1.8 ãããã©ã ãã©ã¦ã¶ã§ãããã¨ãã¡ãã¨JSONã³ã¼ããè¿ã£ã¦ããããfile_get_contentsã§å¼ã³åºãã¨ãä¸è¨Warningãåºã¦ãã¾ã£ãã Fuel\Core\PhpErrorException [ Warning ]: file_get_contents(http://hogehoge/auth/login): failed to open stream: HTTP request failed! HTTP/1.0 401 Unauthorized çµæ file_get_contents ã®ç¬¬ä¸å¼æ°ã«æ¸¡ã
{{#tags}}- {{label}}
{{/tags}}