|
|
|
@ -49,7 +49,7 @@ def send_data(data, localhost, localport, endpoint):
|
|
|
|
if response.status_code == 404 and fallback_port and str(localport) != str(fallback_port):
|
|
|
|
if response.status_code == 404 and fallback_port and str(localport) != str(fallback_port):
|
|
|
|
response_fb, url_fb = _post(fallback_port)
|
|
|
|
response_fb, url_fb = _post(fallback_port)
|
|
|
|
if response_fb.status_code == 200:
|
|
|
|
if response_fb.status_code == 200:
|
|
|
|
print("Данные успешно отправлены и приняты!", url_fb)
|
|
|
|
#print("Данные успешно отправлены и приняты!", url_fb)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
print("Ошибка при отправке данных:", response_fb.status_code, url_fb)
|
|
|
|
print("Ошибка при отправке данных:", response_fb.status_code, url_fb)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|