Hi mate,
You need to look into winsock programming. To do what you want is really quite simple. You just initialise winsock. Create a socket and give it the server information that you wish to connect to (ip, port number etc) and then simply connect to the server. Once connected you send data to it using the http protocol and read the response back and store it in a buffer. Then parse the buffer looking for what you are interested in.
This code below should be roughly what you are looking for
Code:
WSADATA wsaData;
WSAStartup(MAKEWORD(1, 1), &wsaData) ;
int sockfd, numbytes;
char buf[MAXDATASIZE];
struct sockaddr_in their_addr;
sockfd = socket(PF_INET, SOCK_STREAM, 0) ;
their_addr.sin_family = AF_INET;
their_addr.sin_port = htons(PORT_HERE);
their_addr.sin_addr = inet_addr("IP_HERE");
memset(their_addr.sin_zero, '\0', sizeof their_addr.sin_zero);
connect(sockfd, (struct sockaddr *)&their_addr, sizeof their_addr) ;
send(sockfd, "GET /index.html HTTP/1.0\r\n\r\n", 28,0) ; //28 is the string length
numbytes=recv(sockfd, buf, MAXDATASIZE-1, 0) ; // buf now contains the index.html code
close(sockfd) ;
Note i didnt compile or test the above code but it should be good enough for you to understand whats going on. Oh and dont forget your error checking
Hope this helps, and merry christmas