Simple html dom cookie?

Is there a site which gives the number of items on the page only when the parameter in a cookie, for example count_prod =500.
How to send this cookie along with the request page is in Simple Html Dom?
July 2nd 19 at 14:10
3 answers
July 2nd 19 at 14:12
use object-oriented (example from the documentation
// Create a DOM object
$html = new simple_html_dom();
// Load HTML from a string

or simple:
$html = str_get_html($html_string);

pre-prepared $html_string using curl
here help curl+cookies
Thank you, it was all too easy. - Juana.Reilly85 commented on July 2nd 19 at 14:15
July 2nd 19 at 14:14
Cookie is a header, it does not depend on Contenda, whether there be xml or json or form, when you request you just need to add a header Cookie: key=value
Really? Here the author asks how this can be done using Simple html dom... - Juana.Reilly85 commented on July 2nd 19 at 14:17
: file_get_contents + zaruka text is not the url but a string - nicklaus.Will commented on July 2nd 19 at 14:20
well would just say that initially, otherwise it complained about>This kind of remark, not an answer. - aniya.Kertzmann65 commented on July 2nd 19 at 14:23
July 2nd 19 at 14:16
No, get the HTML using curl, for example, and give in simple html dom using a function str_get_html($html)

Find more questions by tags HTMLWeb Development