INNER CODE UNIT · Python

api_post

Unclecheng-li/poc-lab · AI Infrastructure/CVE-2026-47101 LiteLLM/exploit/exploit.py:37

def api_post(url: str, token: str, payload: dict[str, Any]) -> requests.Response:
    return requests.post(
        url,
        headers={
            "Authorization": f"Bearer {token}",
            "Content-Type": "application/json",
        },
        json=payload,
        timeout=30,
    )


def api_get(url: str, token: str) -> requests.Response:
    return requests.get(
        url,
        headers={
            "Authorization": f"Bearer {token}",
            "Content-Type": "application/json",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…