v62: fetch POST multipart/form-data вместо WebSocket+base64 — обход DPI
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Test: multipart/form-data POST binary blob — no JSON, no base64, no WS."""
|
||||
import requests, os, time
|
||||
|
||||
for kb in [30, 60, 100, 150]:
|
||||
blob = os.urandom(kb * 1024)
|
||||
t0 = time.time()
|
||||
try:
|
||||
r = requests.post(
|
||||
"https://proxy.kube5s.ru/",
|
||||
files={"file": ("audio.webm", blob, "audio/webm")},
|
||||
timeout=30
|
||||
)
|
||||
dt = time.time() - t0
|
||||
print(f" {kb}KB blob multipart: HTTP {r.status_code} in {dt:.1f}s ✅")
|
||||
except requests.Timeout:
|
||||
print(f" {kb}KB blob multipart: TIMEOUT ❌")
|
||||
except Exception as e:
|
||||
print(f" {kb}KB blob multipart: ERR {e}")
|
||||
time.sleep(1)
|
||||
Reference in New Issue
Block a user