Hi all:
Got a formatting question here:
Trying to send data string over to a server via send();
The problem is that I want to enclose the data string with double-quotes, "data string" should be displayed on the server side. The method I used is using two double_quotes on each end of the data string, writing the string with the double_quotes to another string and lastly, send the second string using send(). However, the result is the data string without the double quotes I added? Why?
Codes:
_snprintf(user_message,MESSAGE_LINE_SIZE, "MESSAGE ""%s""\r",s);
send(sock,user_message,(int)strlen(user_message),0)==SOCKET_ERROR)
Thanks