#include "W3File.h"
#include "W3HTTP.h"
+#include "W3Gopher.h"
#include <ctype.h>
#include <stdbool.h>
#ifdef SSL_SUPPORT
} else if(strcmp(protocol, "https") == 0) {
#endif
+ }else if(strcmp(protocol, "gopher") == 0){
} else {
__W3_Debug("Protocol", "Not suppported");
W3_Free(w3);
}
void W3_Send_Request(struct W3* w3) {
- if(strcmp(w3->protocol, "http") == 0 || strcmp(w3->protocol, "https") == 0) {
+ if(strcmp(w3->protocol, "http") == 0
+#ifdef SSL_SUPPORT
+ || strcmp(w3->protocol, "https") == 0
+#endif
+ ) {
__W3_HTTP_Request(w3);
+ }else if(strcmp(w3->protocol, "gopher") == 0){
+ __W3_Gopher_Request(w3);
} else if(strcmp(w3->protocol, "file") == 0) {
__W3_File_Request(w3);
}