diff --git a/api/client/apiclient.py b/api/client/apiclient.py index e6016db..2d01d7c 100644 --- a/api/client/apiclient.py +++ b/api/client/apiclient.py @@ -15,7 +15,7 @@ import sys def sendReq(url): def send(payload, host): try: - req = urllib.request.Request('http://{}/{}'.format(host, url), + req = urllib.request.Request('https://{}/{}'.format(host, url), json.dumps(payload).encode('ascii')) req.add_header('Content-Type', 'application/json') handle = urllib.request.urlopen(req)