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);
W3_Set_Method(w3, argv[3] == NULL ? "GET" : argv[3]);
w3->ssl_ctx = NULL;
#endif
if(strcmp(protocol, "file") != 0) {
+ if(strcmp(protocol, "http") == 0){
+#ifdef SSL_SUPPORT
+ }else if(strcmp(protocol, "https") == 0){
+#endif
+ }else{
+ __W3_Debug("Protocol", "Not suppported");
+ W3_Free(w3);
+ w3 = NULL;
+ return w3;
+ }
w3->hostname = __W3_Strdup(hostname);
if(ssl) __W3_Debug("Protocol", "Enabled SSL");
w3->sock = __W3_DNS_Connect(hostname, ssl, port