I need to access a certain URL and load the file 'cookies.txt' the problem is the following I access the URL normally plus the Cookies.txt does not load ...
I think the problem is here in this part
$cookiepattern = "#Set-Cookie:\s+(?<cookie>[^=]+=[^;]+)#m";
preg_match_all($cookiepattern, $header_content, $matches);
$cookiesOut = implode("; ", $matches['cookie']);
$ matches ['cookie']); returns an empty array ...
'cookies.txt' file
Netscape HTTP Cookie File
This file was generated by libcurl! Edit at your own risk. .auto.com TRUE / FALSE 1452087781