From: nishi Date: Wed, 24 Jan 2024 09:56:14 +0000 (+0000) Subject: fix X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=96ee15a760658169786ed9ff468f599515601c48;p=libw3.git fix git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@55 d27a3e52-49c5-7645-884c-6793ebffc270 --- diff --git a/Example/fetch.c b/Example/fetch.c index 5311ced..2d0b42d 100644 --- a/Example/fetch.c +++ b/Example/fetch.c @@ -36,9 +36,9 @@ int main(int argc, char** argv){ return 1; } W3_Library_Init(); - struct W3* w3 = W3_Create("https", argv[1], 443); + struct W3* w3 = W3_Create("http", argv[1], 80); if(w3 != NULL){ - W3_Set_Read_Size(w3, 1024 * 1024); + W3_Set_Read_Size(w3, 1024); W3_Set_Method(w3, argv[3] == NULL ? "GET" : argv[3]); W3_Set_Path(w3, argv[2]); W3_On(w3, "status", (void*)status);