ÃÑ ÆäÀÌÁö ¼ö : 3224

Àüü ÇÔ¼ö/¿ë¾î»çÀü
Facebook Joinc ±×·ì   Joinc QA »çÀÌÆ®



joinc´Â Firefox¿Í chrome¿¡¼­ Å×½ºÆ® Çß½À´Ï´Ù. IE¿¡¼­´Â Å×À̺íÀÌ ±úÁö°Å³ª À̹ÌÁö°¡ º¸ÀÌÁö ¾ÊÀ» ¼ö ÀÖ½À´Ï´Ù. ƯÈ÷ ±¸±Û DocsÀ̹ÌÁöÀÇ °æ¿ì ¿¢¹Úó¸®µÉ ¼ö ÀÖ½À´Ï´Ù.

URLÀ» Àоîµé¿©¼­ Áö¿ªÆÄÀÏ·Î ÀúÀåÇÏ´Â ¿¹Á¦ Makefile(12)´Â GetLink¸¦ ÂüÁ¶.

#include <stdio.h> 
#include <sys/types.h> 
#include <sys/socket.h> 
#include <netdb.h> 
#include <WWWLib.h> 
#include <WWWHTTP.h> 
#include <WWWInit.h> 
 
/* 
**    Loads a URL to a local file 
*/ 
int main (int argc, char ** argv) 
{ 
    HTRequest * request; 
    HTProfile_newPreemptiveClient("TestApp", "1.0"); 
    request = HTRequest_new(); 
    if (argc == 3) { 
    char * url = argv[1]; 
    char * filename = argv[2]; 
    if (url && *url && filename && *filename) 
        HTLoadToFile(url, request, filename); 
    else 
        printf("Bad parameters - please try again\n"); 
    } else { 
    printf("Type the URL to fetch and the name of the local file to put it in\n"); 
    printf("\t%s <url> <filename>\n", argv[0]); 
    } 
    HTRequest_delete(request);            /* Delete the request object */ 
    HTProfile_delete(); 
    return 0; 
} 
 
EmailÀ» ±âÀÔÇϸé, ´ñ±ÛÀÌ ¸ÞÀÏ·Î Àü´ÞµË´Ï´Ù.