Added https and http non-standard port support

client_ports
Chris Truncer 2015-12-03 12:48:45 -07:00
parent 7da42645cc
commit 049e59e142
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class Client:
def transmit(self, data_to_transmit): def transmit(self, data_to_transmit):
if not self.file_transfer: 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 # Post the data to the web server at the specified URL
try: try:

View File

@ -24,7 +24,7 @@ class Client:
def transmit(self, data_to_transmit): def transmit(self, data_to_transmit):
if not self.file_transfer: 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 # Post the data to the web server at the specified URL
try: try: