I am developing a website that will be communicating with a REST-protocol. The owner of the REST service wants a cookie to be sent along with the REST call, perhaps via header.
How is this done in PHP, how can I send a cookie along with a REST-call?
Thankful for all help!
If you’re using cURL, take a look at curl_setopt options
CURLOPT_COOKIEJAR(storing cookies from a response) andCURLOPT_COOKIEFILE(loading cookies before request). It should be sufficient to set both to the same file.