diff --git a/tools/cwrap.py b/tools/cwrap.py index d19caee3..d60db4cb 100644 --- a/tools/cwrap.py +++ b/tools/cwrap.py @@ -97,8 +97,8 @@ with open(concore.inpath+'1/'+name1, 'rb') as f1: f = {'file1': f1} logging.debug(f"CW: before post u={u}") - logging.debug(f'http://www.controlcore.org/pm/{yuyu}{apikey}&fetch={name2}') - r = requests.post('http://www.controlcore.org/pm/'+yuyu+apikey+'&fetch='+name2, files=f,timeout=timeout_max) + logging.debug(f'https://www.controlcore.org/pm/{yuyu}{apikey}&fetch={name2}') + r = requests.post('https://www.controlcore.org/pm/'+yuyu+apikey+'&fetch='+name2, files=f,timeout=timeout_max) if r.status_code!=200: logging.error(f"bad POST request {r.status_code}") quit() @@ -117,7 +117,7 @@ with open(concore.inpath+'1/'+name1, 'rb') as f1: f = {'file1': f1} try: - r = requests.post('http://www.controlcore.org/pm/'+yuyu+apikey+'&fetch='+name2, files=f,timeout=timeout_max) + r = requests.post('https://www.controlcore.org/pm/'+yuyu+apikey+'&fetch='+name2, files=f,timeout=timeout_max) except Exception: logging.error("CW: bad request") timeout_count += 1 diff --git a/tools/pwrap.py b/tools/pwrap.py index 82aea7da..61698069 100644 --- a/tools/pwrap.py +++ b/tools/pwrap.py @@ -83,7 +83,7 @@ #initfiles = {'file1': open('./u', 'rb'), 'file2': open(concore.inpath+'1/ym', 'rb')} initfiles = {'file1': open('./'+name1, 'rb'), 'file2': open(concore.inpath+'1/'+name2, 'rb')} # POST Request to /init with u as file1 and ym as file2 -r = requests.post('http://www.controlcore.org/init/'+yuyu+apikey, files=initfiles) +r = requests.post('https://www.controlcore.org/init/'+yuyu+apikey, files=initfiles) while(concore.simtime