http_session_get_cookies
Http Session Get Cookies
Get all cookies stored in a session. Optionally filter by URL to get only cookies that would be sent to a specific domain. Returns cookies as a JSON array with domain, name, value, path, expiry, secure, and httponly fields.
Usage Example
1234567891011
import asyncio
from owl_browser import OwlBrowser, RemoteConfig
# Async usage
async with OwlBrowser(config) as browser:
context = await browser.create_context()
context_id = context["context_id"]
await browser.http_session_get_cookies(
session_id="value"
)
Parameters
Required
session_idstringrequiredThe session ID.
Optional
urlstringOptional URL filter. Only returns cookies that would be sent to this URL.
Response
Returns a JSON object with the operation result.
{
"success": true,
"result": <value>
}