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