Hi, I downloaded the updated http.php but still no luck.. Ends up with the same error..
Here's the script:
<?php
require('http.php');
$http = new http_class();
set_time_limit(0);
$http->timeout=0;
$http->data_timeout=0;
$http->debug=1;
$http->html_debug=1;
$http->user_agent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)";
$http->follow_redirect=1;
$http->redirection_limit=5;
$url = 'http://www.friendster.com/index.php';
$http->GetRequestArguments($url,$arguments);
$arguments["RequestMethod"]="GET";
$arguments["Headers"]["Pragma"]="nocache";
flush();
$error=$http->Open($arguments);
if($error == ''){
$error=$http->SendRequest($arguments);
if($error == ''){
$headers=array();
$error=$http->ReadReplyHeaders($headers);
if($error == ''){
for(;;)
{
$error=$http->ReadReplyBody($body,1000);
if($error!="" || strlen($body)==0)
break;
$result .= $body;
}
$currentContent = $result;
$result = '';
$http->Close();
$url = 'http://www.friendster.com/index.php';
$http->GetRequestArguments($url,$arguments);
$arguments["RequestMethod"]="POST";
//$arguments["Headers"]["Pragma"]="nocache";
$arguments["PostValues"]=array(
"_submitted"=>"1",
"next"=>"/home.php?statpos=index",
"tzoffset"=>"",
"email"=>'
[email protected]',
"password"=>'123abc'
);
flush();
$error=$http->Open($arguments);
if($error == ''){
$error=$http->SendRequest($arguments);
if($error == ''){
$headers=array();
$error=$http->ReadReplyHeaders($headers);
if($error == ''){
for(;;)
{
$error=$http->ReadReplyBody($body,1000);
if($error!="" || strlen($body)==0)
break;
$result .= $body;
}
$currentContent = $result;
$result = '';
$http->Close();
//echo 'BODY::'.$currentContent;
}
}
}
}
}
}
if(strlen($error)){
echo "<CENTER><H2>Error: ",$error,"</H2><CENTER>\n";
}
?>
I don't know what's causing this problem.. Can you compare it with the code you used to login friendster?
Thank you very much..