I need to fetch a page with my server that requires a cookie. If I understand things correctly, I can use curl for this (I have it on my server).
From the example on php.net, I am guessing that I need to use setopt for this? Can you show me how? I think I use it like:
$ch = curl_init("http://www.example.com/
$fp = fopen("example_homepage.tx
//here is where (I think) I would put the cookie in - it needs to say zipcode=23232
//display the page (in real life I will be modifying the text/html with str_replace a bit before displaying it. I'm not stealing anyone's content by the way, just reformatting it to make my daily research a bit easier).