17/10/29 11:26:37.79 htd7uCcc0.net
>>797
配列です。
return [ $http_response_header, $body ];
おかしいのは、どうもSet-CookieのセッションIDが変わってしまってるのが原因のようです。
'http' => [
'header' => "Cookie: " . $this->getCookie($url) . "\r\n"
]
毎回このようなクッキー送るコンテキストは指定して、
file_get_contentsしてから、新規のクッキーは、
$this->setCookie($url, $http_response_header);
という具合にしてからreturnしています。
ベタ書きだとちゃんと動作します。