v62: fetch POST multipart/form-data вместо WebSocket+base64 — обход DPI

This commit is contained in:
“Naeel”
2026-05-22 18:19:19 +04:00
parent 1f3dce39a4
commit b71eb9a45f
7 changed files with 180 additions and 38 deletions
+20
View File
@@ -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)