Added https and http non-standard port support
parent
7da42645cc
commit
049e59e142
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue