]> Nishi Git Mirror - libw3.git/commitdiff
fixed fetch
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Mon, 22 Jan 2024 02:58:39 +0000 (02:58 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Mon, 22 Jan 2024 02:58:39 +0000 (02:58 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@47 d27a3e52-49c5-7645-884c-6793ebffc270

Example/fetch.c

index c0a46986e36b0f6760d08a618c5ecd05e10992ba..11b2e46b8a8bb40d94a6a7f9f33933695f1bcf01 100644 (file)
@@ -36,7 +36,7 @@ int main(int argc, char** argv){
                return 1;
        }
        W3_Library_Init();
-       struct W3* w3 = W3_Create("file", argv[1], 80);
+       struct W3* w3 = W3_Create("http", argv[1], 80);
        if(w3 != NULL){
                W3_Set_Method(w3, argv[3] == NULL ? "GET" : argv[3]);
                W3_Set_Path(w3, argv[2]);