http_session_create
Create a persistent HTTP session with automatic cookie management. Cookies received from servers are stored and automatically sent with subsequent requests in the same session. Configure default headers, proxy, user agent, and TLS settings that apply to all requests in the session. Returns a session_id for use with http_session_request and other session tools. Maximum 64 concurrent sessions.
Usage Example
Parameters
Optional
headersstringDefault HTTP headers as a JSON object or string. Applied to all session requests unless overridden.
user_agentstringDefault User-Agent for all session requests.
follow_redirectsbooleanDefault redirect following behavior. Default: true
max_redirectsstringDefault maximum redirects. Default: 10
ssl_verifybooleanDefault SSL verification. Default: true
ca_cert_pathstringDefault CA certificate path for the session.
proxy_typeenumhttphttpssocks4socks5+1 moreDefault proxy type for the session.
proxy_hoststringDefault proxy host.
proxy_portstringDefault proxy port.
proxy_usernamestringDefault proxy username.
proxy_passwordstringDefault proxy password.
use_torbooleanUse built-in Tor proxy for all session requests. Default: false
Response
Returns a JSON object with the operation result.
{
"success": true,
"result": <value>
}