You can use curl_setopt
with the CURLOPT_COOKIE constant:
<?php
// create a new cURL resource
$ch = curl_init();
// cookies to be sent
curl_setopt($ch, CURLOPT_COOKIE, "fruit=apple; colour=red");
More Related Contents:
- how to get the cookies from a php curl into a variable
- PHP Curl And Cookies
- How to login in with Curl and SSL and cookies
- PHP Curl – Cookies problem
- How can I send cookies using PHP curl in addition to CURLOPT_COOKIEFILE?
- Login to Google with PHP and Curl, Cookie turned off?
- Is this curl post or get?
- PHP – SSL certificate error: unable to get local issuer certificate
- How to enable cURL in PHP / XAMPP
- Login to remote site with PHP cURL
- What is cURL in PHP?
- Getting title and meta tags from external website
- PHP Parallel curl requests
- How to get page content using cURL?
- How to check if a file exists from a url
- file_get_contents receive cookies
- PHP CURL CURLOPT_SSL_VERIFYPEER ignored
- select outgoing ip for curl request
- another twitter oAuth cURL access token request that fails
- phpmyadmin automatic logout time
- Can servers block curl requests?
- How to install php-curl in Ubuntu 16.04
- Show Curl POST Request Headers? Is there a way to do this?
- How to get info on sent PHP curl request
- What is the postman-token header attribute in generated code from Postman?
- PHP authentication with multiple domains and subdomains
- How can I get the destination URL using cURL?
- FTP upload file to distant server with CURL and PHP uploads a blank file
- What encryption algorithm is best for encrypting cookies?
- How can I send SOAP XML via Curl and PHP?