#include <afxinet.h> //for WinInet CInternetSession httpSession; CInternetFile* htmlFile = (CInternetFile*) httpSession.OpenURL("http://192.168.1.77:8000/cgi-bin/emvideo.cgi"); CString content; CString m_html; while (htmlFile->ReadString(content)) { m_html += content + " "; } htmlFile->Close(); httpSession.Close();