|
|
@ -340,6 +340,7 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
|
|
|
|
# Write content as utf-8 data
|
|
|
|
# Write content as utf-8 data
|
|
|
|
self.wfile.write(inResponseDict["Body"])
|
|
|
|
self.wfile.write(inResponseDict["Body"])
|
|
|
|
def do_GET(self):
|
|
|
|
def do_GET(self):
|
|
|
|
|
|
|
|
try:
|
|
|
|
self.OpenRPA = {}
|
|
|
|
self.OpenRPA = {}
|
|
|
|
self.OpenRPA["AuthToken"] = None
|
|
|
|
self.OpenRPA["AuthToken"] = None
|
|
|
|
self.OpenRPA["Domain"] = None
|
|
|
|
self.OpenRPA["Domain"] = None
|
|
|
@ -407,8 +408,12 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
|
|
|
|
self.send_response(403)
|
|
|
|
self.send_response(403)
|
|
|
|
# Send headers
|
|
|
|
# Send headers
|
|
|
|
self.end_headers()
|
|
|
|
self.end_headers()
|
|
|
|
|
|
|
|
except Exception as e:
|
|
|
|
|
|
|
|
lL = gSettingsDict["Logger"]
|
|
|
|
|
|
|
|
if lL: lL.exception(f"Server.do_GET: Global error handler - look traceback below.")
|
|
|
|
# POST
|
|
|
|
# POST
|
|
|
|
def do_POST(self):
|
|
|
|
def do_POST(self):
|
|
|
|
|
|
|
|
try:
|
|
|
|
lL = gSettingsDict["Logger"]
|
|
|
|
lL = gSettingsDict["Logger"]
|
|
|
|
self.OpenRPA = {}
|
|
|
|
self.OpenRPA = {}
|
|
|
|
self.OpenRPA["AuthToken"] = None
|
|
|
|
self.OpenRPA["AuthToken"] = None
|
|
|
@ -486,6 +491,9 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
|
|
|
|
# Send headers
|
|
|
|
# Send headers
|
|
|
|
self.end_headers()
|
|
|
|
self.end_headers()
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
except Exception as e:
|
|
|
|
|
|
|
|
lL = gSettingsDict["Logger"]
|
|
|
|
|
|
|
|
if lL: lL.exception(f"Server.do_POST: Global error handler - look traceback below.")
|
|
|
|
#Logging
|
|
|
|
#Logging
|
|
|
|
#!Turn it on to stop print in console
|
|
|
|
#!Turn it on to stop print in console
|
|
|
|
#def log_message(self, format, *args):
|
|
|
|
#def log_message(self, format, *args):
|
|
|
|