A very usuall recv() !Code:char buff[5]; CString htmlSource; int rb=recv(conn,buff,sizeof(buff),MSG_PEEK); while(rb>0) { rb=recv(conn,buff,sizeof(buff),MSG_PEEK); htmlSource+=(CString)buff; } return htmlSource;
I use it to get a http request's response from a server
the problem is that i always recieve the response followed by request i sent !!!
which looks like that...
ny one got a clue whats wrong ?!Code:Host: www.site.com Connection: Close ...ect




Reply With Quote