tools.http_poster module

Universal HTTP request tool supporting any method, headers, cookies, and data.

async tools.http_poster.run(url, method='GET', headers=None, cookies=None, data=None, json_data=None, form_data=None, params=None, timeout=30.0, verify_ssl=True, follow_redirects=True, ctx=None)[source]

Execute this tool and return the result.

Parameters:
  • url (str) – URL string.

  • method (str) – The method value.

  • headers (Optional[str]) – The headers value.

  • cookies (Optional[str]) – The cookies value.

  • data (Optional[str]) – Input data payload.

  • json_data (Optional[str]) – The json data value.

  • form_data (Optional[str]) – The form data value.

  • params (Optional[str]) – The params value.

  • timeout (float) – Maximum wait time in seconds.

  • verify_ssl (bool) – The verify ssl value.

  • follow_redirects (bool) – The follow redirects value.

  • ctx – Tool execution context providing access to bot internals.

Returns:

Result string.

Return type:

str