【发布时间】:2011-09-25 05:58:20
【问题描述】:
我正在尝试获取会话值并存储在变量中.. 怎么做?
示例:
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
【问题讨论】: