Do xhrFields: {withCredentials: true} of AJAX in PHP CURL

0

In the request POST in AJAX I have this to keep the user session of the external website.

xhrFields: { withCredentials: true },
crossDomain: true

How can I do this in CURL in PHP ?

    
asked by Jesús 06.06.2017 в 11:56
source

1 answer

0

Of course        CURLOPT_SSL_VERIFYPEER = 0;        CURLOPT_SSL_VERIFYHOST = 2;

these variables you must configure

    
answered by 08.06.2017 в 21:48