TwistPHP Documentation

setCookies

File path: dist/twist/Core/Utilities/Curl.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

setCookiesThe contents of the "Cookie: " header to be used in the HTTP request. Note that multiple cookies are separated with a semicolon followed by a space (e.g., "fruit=apple; colour=red")

Parameters

Name Type Description
$strCookiesstringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strCookies 'foo';

//Call the function setCookies with the example vars
Twist::Curl() -> setCookies($strCookies);