C++ Winsock2 sending an ENTER?

08/08/2012 16:42 jackpotsvr#1
Hello! I am willing to send an enter using Winsock TCP/IP to a browser.
The enter is being used inside a HTTP Message, so it cannot simply be '\n'.
Is there maybe a char for enter?

Any idea on how I can achieve the enter in this case will be appreciated :)

Thanks in advance,
jackpotsvr

EDIT-

Figured that octal number 12 is an enter. so
char ENTER = 0012;
Though still haven't figured how I could add this in my HTTP message.
08/08/2012 23:14 SmackJew#2
Quote:
Originally Posted by jackpotsvr View Post
Hello! I am willing to send an enter using Winsock TCP/IP to a browser.
The enter is being used inside a HTTP Message, so it cannot simply be '\n'.
Is there maybe a char for enter?

Any idea on how I can achieve the enter in this case will be appreciated :)

Thanks in advance,
jackpotsvr

EDIT-

Figured that octal number 12 is an enter. so
char ENTER = 0012;
Though still haven't figured how I could add this in my HTTP message.
Check how a browser does it.
08/09/2012 01:35 MrSm!th#3
Quote:
Figured that octal number 12 is an enter. so
char ENTER = 0012;
Though still haven't figured how I could add this in my HTTP message.
Btw. \n is an escape sequence and replaced by 12 by the compiler.
08/09/2012 12:24 jackpotsvr#4
At first I just used an ascii to octal convert, and converted an 'enter' to octal which gave me 0012. So I made a char with that octal value, and a string which value was equal to the char.

PHP Code:
char  ENTER 0012;
string ENDLSTR;
string text;
ENDLSTR char(ENTER); 
In the end I figured it was a way easier.. With this small piece of code I achieved the same :)

PHP Code:
string ENDLSTR '\n'
Good luck all, cya, Thanks
08/09/2012 12:34 MrSm!th#5
That's what I said..
08/09/2012 16:10 jackpotsvr#6
Quote:
Originally Posted by MrSm!th View Post
That's what I said..
Indeed, that's what you said.