cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: How to pass set-cookie header to browser

From: <pppsss7_at_gmail.com>
Date: Mon, 14 Sep 2009 00:20:00 +0400

You can test it with your local server.
Make script.php with only phpinfo() function and get this script via
URL and you can see all headers

Отправлено с iPhone

14.09.2009, в 0:12, info_at_itegic.co.za написал(а):

>> header("Set-Cookie: name=value");
>
> I've tried using curl_setopt($ch, CURLOPT_HEADERFUNCTION,
> '_setHeader')
> where _setHeader basically does header(header_response), but the
> Set-Cookie header was never accepted by the browser? Not sure
> whether this
> is the way to do it, or whether curl can pass cookie data to browser
> in
> order for cookie to be saved on client machine...
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2009-09-13