Hi, Those are the arguments that I'm already using so I think the problem is not with the post arguments...
Sorry if I have to post the code here coz I don't know where I can publicly post it..
<?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',
);
$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";
}
?>