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: