Hello People..
I am using cURL to open up a web page from my page. I am giving my password and email..
but on LIVE HTTP headers a plugin by FF..it shows error 404..
it says so because the new page has a css file named "io.css"
and error 404 comes on the block trying to acess "http://mydomain.name/io.css"..
where do you think the problem might be..
any help is appreciated..!!
here is my curl code,, which i think is fine
$cookie_file = "/xxxxxxxxxxxx";
$header[0] = "Accept: text/xml,application/xml,application/xhtml+xml,";
$header[0] .= "text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";
$header[] = "Cache-Control: max-age=0";
$header[] = "Connection: keep-alive";
$header[] = "Keep-Alive: 300";
$header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
$header[] = "Accept-Language: en-us,en;q=0.5";
$header[] = "Pragma: "; // browsers keep this blank.
$ch=curl_init(); // initialize curl handle
curl_setopt($ch, CURLOPT_URL, "xxxxxxxx"); //set url to POST to
curl_setopt ($ch, CURLOPT_ENCODING, "");
curl_setopt($ch, CURLOPT_NOPROGRESS, 1);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "email=xxxxxxxxxxxxxx");
curl_setopt($ch, CURLOPT_TIMEOUT, 20);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11");
curl_setopt($ch, CURLOPT_REFERER, "xxxxxxxxx");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file);
$buffer = curl_exec($ch);
curl_close($ch);
echo '##'.$buffer;
PLZ HELP