liqian 2 years ago
parent
commit
1a9503ec31
1 changed files with 7 additions and 1 deletions
  1. 7 1
      utils.py

+ 7 - 1
utils.py

@@ -384,4 +384,10 @@ if __name__ == '__main__':
     # text = '测试 @李倩'
     # send_msg_to_feishu(text)
 
-    update_video_w_h_rate(video_id=113, key_name='')
+    # update_video_w_h_rate(video_id=113, key_name='')
+
+    request_url = "http://videotest-internal.yishihui.com/longvideoapi/dev/test/testTimeout"
+    headers = {"Connection": "close"}
+    response = requests.post(url=request_url, json={}, timeout=(0.1, 1), headers=headers)
+    print(response.status_code, response.text)
+