I basically do all the stuff to open a socket, then do this:
/* SNIP resolving address and opening a socket to sockfd */
socketf = fdopen(sockfd, "r+");
fprintf(socketf, "GET http://%s/%s\n\n", domain, path);
while ( (inChar = fgetc(socketf)) != EOF ) {
putchar(inChar);
}
Now, when I try and go add the network stuff to my client's code, it acts weird...I figure, "Hey! Let's go use the htmlgetter again, see if it works." It doesn't. It just sits there for about 5 minutes, and then exits quietly. The code is ripe with error checking. It, does, in fact work for all of the non LJ URL's I've tried (a few on my server, google, etc). Any suggestions?