add cookie wait endpoint
Some checks failed
CI / release (push) Failing after 1m21s

This commit is contained in:
estebanthilliez
2026-04-24 22:21:24 +02:00
parent dcd929a4c5
commit 772ed5a176
4 changed files with 171 additions and 9 deletions

View File

@@ -12,15 +12,24 @@ async def main():
)
print(resp1.json())
resp2 = await client.post(
"http://localhost:8080/cloudflare",
json={
"domain": "https://lksfy.com/",
"siteKey": "0x4AAAAAAA49NnPZwQijgRoi",
"mode": "turnstile",
},
)
print(resp2.json())
resp2 = await client.post(
"http://localhost:8080/cloudflare",
json={
"domain": "https://lksfy.com/",
"siteKey": "0x4AAAAAAA49NnPZwQijgRoi",
"mode": "turnstile",
},
)
print(resp2.json())
resp3 = await client.post(
"http://localhost:8080/cookie",
json={
"domain": "https://example.com/",
"cookieName": "session_id",
},
)
print(resp3.json())
if __name__ == "__main__":
asyncio.run(main())