Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
#include <stdio.h>
#include <malloc.h>
int main(void)
{
CInternetSession session("My Session");
CHttpFile *file = NULL;
unsigned long code = 0, con_len = 0;
char buff[1000] = "";
long i = 0, so_far = 0;
char *file_text = NULL;
printf("getting file\n\n");
file = (CHttpFile*)session.OpenUR
if(file)
{
file->QueryInfoStatusCode(
printf("Got It **status code is : %i**\n\n",code);
while(true)
{
i = file->Read(buff,999);
file_text = (char*)realloc(file_text,(
memcpy(file_text + so_far - i,buff,i);
if(i < 999) break;
}
file_text[so_far] = '\0';
printf("CONTENT\n%s\n",fil
}
return 0;
}