我想獲得會話價值和存儲在變量..如何做到這一點?Curl - 獲得JSESSIONID
例子:
curl_setopt($ch, CURLINFO_HEADER_OUT, true);
print_r(curl_getinfo($ch));
輸出:
[request_header] => POST /customer.jsp?c=4 HTTP/1.1
Host: webdadasasd.co.uk
Accept: */*
Cookie: JSESSIONID=0000-dsfsdfsdf-sdfsdfsd_:fsdfsdfds
Content-Length: 54
Content-Type: application/x-www-form-urlencoded)
我想要得到的cookie值僅是這樣的:JSESSIONID = 0000-dsfsdfsdf-sdfsdfsd_:fsdfsdfds