summaryrefslogtreecommitdiff
path: root/src/MySock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/MySock.h')
-rw-r--r--src/MySock.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/MySock.h b/src/MySock.h
index 132978c..4001429 100644
--- a/src/MySock.h
+++ b/src/MySock.h
@@ -20,7 +20,9 @@ using namespace std;
#define CANT_READ_DATA 45
#define NO_VALID_PROTOCOL 50
#define NO_VALID_HEADERS 52
+#define CANT_RUN_FETCH 60
+#define HTTPS_FETCH_CMD "fetch -q -o - "
#define CRLF "\r\n"
struct HTTP_Request
{
@@ -55,8 +57,11 @@ public:
private:
int sockd, puerto;
struct hostent *server;
+ bool use_external_fetch;
+ string https_uri;
void MakeConnection (string server, int port);
+ HTTP_Request *GetHTTPDataViaExternalFetch();
};
TKey_Value extract_key_value(string str);