http_request_with_session
Make authenticated HTTP requests by reusing the browser's session cookies and authorization headers.
Instructions
⭐ Authenticated HTTP request that piggybacks on the BROWSER's session.
Combines:
- cookies from active tab (use_browser_cookies=True in http_request)
- Authorization header — explicit auth_header, OR auto-extracted
from network_index (the most recent same-host request captured
via network_start). Pages that hold bearer tokens in JS memory
only become reachable after navigate / interaction emits a
request — call network_start once at session begin.
Args:
url, method, json_body, data, impersonate, return_mode, timeout:
same as http_request
extra_headers: merged on top of auto-detected ones
auth_header: explicit bearer / basic value, e.g. "Bearer eyJ..."
Returns same shape as http_request.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| method | No | GET | |
| json_body | No | ||
| data | No | ||
| extra_headers | No | ||
| auth_header | No | ||
| impersonate | No | chrome | |
| return_mode | No | auto | |
| timeout | No |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |