Russell Bryant wrote:<br>><br>
> connect(sd,(struct sockaddr *) &serveraddr, sizeof(serveraddr));<br>
><br>
> strcpy(msg,"Action: Login\r\nUsername: admin\r\nSecret: admin\r\n\r\n");<br>
> send(sd,msg,strlen(msg)+1,0);<br>
>><br>>>... this is. Take off the "+1" here and in your next call to send().<br>
>><br>>>Be sure to try to understand why these changes have been necessary and don't<br>>>just make them. :)<br><br>Thank you so much. Not only the code is working correctly now, I now understand the portion of the code that did not work and also why it did not work.<br>
<br>Thank you again for helping me out and also making we aware of coding correctly. :)<br>