nauman_mirza 0 Newbie Poster

I am trying to connect with afilias using php code below.

$ctx = stream_context_create();

$fp = stream_socket_client('inforfcote1.afilias.net:700', $err, $errstr, 60, STREAM_CLIENT_CONNECT, $ctx);
if (!$fp) 
{
	print "Failed to connect $err $errstrn";
	return;
}
else 
{
	print "Connection OK<br />";
}

I get "connection OK" when I execute the script.

My question is how can I send the login command (username and password) to afilias?