Is there a way for example, to use WGET, inside of a C program?
I want to download the text of a website's index.html (ie www.google.com/index.html) and then send it over to another program via sockets.
Is this possible?
> It keeps saying: > Failed to connect with the server : Bad file descriptor that says all that needs to be said, doesn't it? [code]int websock; [COLOR="Red"]// websock is an uninitialized int[/COLOR] webaddress.sin_family = AF_INET; webaddress.sin_addr.s_addr = inet_addr("http://www.google.com/index.html"); webaddress.sin_port = htons(80); if(connect(websock, ... [COLOR="Red"]// websock is not a file … Read More