curl - PHP Set-Cookie in the header for next request -
i send request server using php curl,i getting server response like:
array ( [0] => http/1.1 200 ok [1] => connection: close [2] => date: mon, 15 jun 2015 10:34:22 gmt [3] => server: microsoft-iis/6.0 [4] => x-powered-by: asp.net [5] => x-aspnet-version: 1.1.4322 [6] => set-cookie: asp.net_sessionid=qqvn5y55p2cwqkmkdt5z1455; path=/ [7] => cache-control: private, max-age=0 [8] => content-type: text/xml; charset=utf-8 [9] => content-length: 1379 ) in next request have send session id sending xml.but don't know how can send session id through header using curl method.
curl_setopt($ch, curlopt_cookie, session_name().'='.session_id()); or curl_setopt($ch, curlopt_cookie, $cookie);
Comments
Post a Comment