From 049e59e142cd9bc70351b43b2581d6e0b25a6fe0 Mon Sep 17 00:00:00 2001 From: Chris Truncer Date: Thu, 3 Dec 2015 12:48:45 -0700 Subject: [PATCH] Added https and http non-standard port support --- protocols/clients/http_client.py | 2 +- protocols/clients/https_client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/clients/http_client.py b/protocols/clients/http_client.py index 6ec12d4..787eebb 100644 --- a/protocols/clients/http_client.py +++ b/protocols/clients/http_client.py @@ -25,7 +25,7 @@ class Client: def transmit(self, data_to_transmit): if not self.file_transfer: - url = "http://" + self.remote_server + "/post_data.php" + url = "http://" + self.remote_server + ":" + self.port + "/post_data.php" # Post the data to the web server at the specified URL try: diff --git a/protocols/clients/https_client.py b/protocols/clients/https_client.py index 148c6e8..b4c45ce 100644 --- a/protocols/clients/https_client.py +++ b/protocols/clients/https_client.py @@ -24,7 +24,7 @@ class Client: def transmit(self, data_to_transmit): if not self.file_transfer: - url = "https://" + self.remote_server + "/post_data.php" + url = "https://" + self.remote_server + ":" + self.port + "/post_data.php" # Post the data to the web server at the specified URL try: