im trying to login to my email at website thrugh fsockopen from my website. im using the following script


// Build the request string
$request = 'LoginName=jdm79' ;
$request .= '&user_pwd=jdma79' ;

// Build the header
$header = "POST /email/scripts/ HTTP/1.0rn";
$header .= "Content-type: application/x-www-form-urlencodedrn";
$header .= "Content-length: " . strlen($request) . "rnrn";

// Open the connection
$fp = fsockopen('', 80, &$err_num, &$err_msg, 30);
if ($fp)
// Send everything
fputs($fp, $header . $request);
// Get the response
while (!feof($fp))
$response .= fgets($fp, 128);

echo $response ;


but im getting the error
Not Found
The requested URL /email/scripts/ was not found on this server.
Apache/1.3.9 Server at Port 80.

but when im going to website it's working well.

Can any body help me in doing this. well i have allready mentioned the login name and password jdma79, jdma79 for the email.