Receive GET request through sockets
问题 How can I receive GET request through sockets? For example I am writing in browser: 127.0.0.1:41233/?data=mymessage and I want my application to receive "mymessage". I wrote this piece of code but recv() returns WSAENOTCONN error and I don't know how to fix it. int main() { WSADATA socketData; SOCKET portListener; struct sockaddr_in saInfo = {0}; if ( WSAStartup( MAKEWORD(1, 1), &socketData ) != 0) { printf( "WSAStartup() error!" ); return 0; } portListener = socket( AF_INET, SOCK_STREAM, 0 )