Authantication Fail

3 views
Skip to first unread message

arunaxp

unread,
Jan 28, 2009, 4:07:26 AM1/28/09
to Amee Developer
hi friend
im new to php and amee. i need to integrate amee with my site.mean
while i face Authentication problem.
amee_functions.php --> sendRequest(..,..,..) function

//-------------------------------------------------------------------------------------------

$s = socket_create(AF_INET, SOCK_STREAM, 0);
if(socket_bind($s,'192.168.1.50',49154))
{
//echo'socket binded';
}
$z = socket_connect($s, gethostbyname($amee_host), $amee_port);

$q = socket_write($s, $header, strlen($header));

$lines=array();
$lines[0]="";
$i=0;
$xml_line="";
while (true)
{
$c = @socket_read($s, 1)or die('Socket Read error');

//------------------------------------------------------------------------------
with my example unable to read socket
finally it give me following error

"HTTP/1.1 401 UNAUTHORIZED Via: 1.1...."

what should i do . please help me as soon as possible
thank u
aruna
Reply all
Reply to author
Forward
0 new messages