Answer the question
In order to leave comments, you need to log in
What do cookies saved with curl look like?
What do cookies saved with curl look like?
Here is the curl request
<?php
set_time_limit(0);
ob_implicit_flush();
$uref = " site2.ru/2.php ";
$gurl = " site.ru ";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $gurl);
curl_setopt($ch, CURLOPT_COOKIEFILE, " site/referer/cookie.txt ");
curl_setopt($ch, CURLOPT_COOKIEJAR, " site/referer/cookie.txt ");
curl_exec($ch);
curl_close($ch);
?>
I run curl and nothing is saved in /cookie.txt.
Can you show what is inside cookie.txt when you open it..
Answer the question
In order to leave comments, you need to log in
For example
# Netscape HTTP Cookie File
# https://curl.haxx.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
#HttpOnly_.instagram.com TRUE / TRUE 0 rur ATN
.instagram.com TRUE / TRUE mid
.instagram.com TRUE / TRUE mcd 3
.instagram.com TRUE / TRUE 1574950808 csrftoken
#HttpOnly_.instagram.com TRUE / TRUE 1574972707 sessionid
www .instagram.com FALSE / FALSE 1543004702 sessionid
#HttpOnly_.instagram.com TRUE / TRUE 0 urlgen
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question