http_class
- Full name:
\http_class
Properties
host_name
host_port
proxy_host_name
proxy_host_port
socks_host_name
socks_host_port
socks_version
protocol
request_method
user_agent
accept
authentication_mechanism
user
password
realm
workstation
proxy_authentication_mechanism
proxy_user
proxy_password
proxy_realm
proxy_workstation
request_uri
request
request_headers
request_user
request_password
request_realm
request_workstation
proxy_request_user
proxy_request_password
proxy_request_realm
proxy_request_workstation
request_body
request_arguments
protocol_version
timeout
data_timeout
debug
log_debug
debug_response_body
html_debug
support_cookies
cookies
error
error_code
exclude_address
follow_redirect
redirection_limit
response_status
response_message
file_buffer_length
force_multipart_form_post
prefer_curl
keep_alive
sasl_authenticate
state
use_curl
connection
content_length
response
read_response
read_length
request_host
next_token
redirection_level
chunked
remaining_chunk
last_chunk_read
months
session
connection_close
force_close
connected_host
connected_port
connected_ssl
Methods
Tokenize
Parameters:
Parameter | Type | Description |
---|---|---|
$string |
mixed | |
$separator |
mixed |
CookieEncode
Parameters:
Parameter | Type | Description |
---|---|---|
$value |
mixed | |
$name |
mixed |
SetError
Parameters:
Parameter | Type | Description |
---|---|---|
$error |
mixed | |
$error_code |
mixed |
SetPHPError
public SetPHPError(mixed $error, mixed& $php_error_message, mixed $error_code = HTTP_CLIENT_ERROR_UNSPECIFIED_ERROR): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$error |
mixed | |
$php_error_message |
mixed | |
$error_code |
mixed |
SetDataAccessError
Parameters:
Parameter | Type | Description |
---|---|---|
$error |
mixed | |
$check_connection |
mixed |
OutputDebug
Parameters:
Parameter | Type | Description |
---|---|---|
$message |
mixed |
GetLine
PutLine
Parameters:
Parameter | Type | Description |
---|---|---|
$line |
mixed |
PutData
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
mixed |
FlushData
ReadChunkSize
ReadBytes
Parameters:
Parameter | Type | Description |
---|---|---|
$length |
mixed |
EndOfInput
Resolve
Parameters:
Parameter | Type | Description |
---|---|---|
$domain |
mixed | |
$ip |
mixed | |
$server_type |
mixed |
Connect
public Connect(mixed $host_name, mixed $host_port, mixed $ssl, mixed $server_type = 'HTTP'): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$host_name |
mixed | |
$host_port |
mixed | |
$ssl |
mixed | |
$server_type |
mixed |
Disconnect
GetRequestArguments
Parameters:
Parameter | Type | Description |
---|---|---|
$url |
mixed | |
$arguments |
mixed |
Open
Parameters:
Parameter | Type | Description |
---|---|---|
$arguments |
mixed |
Close
Parameters:
Parameter | Type | Description |
---|---|---|
$force |
mixed |
PickCookies
Parameters:
Parameter | Type | Description |
---|---|---|
$cookies |
mixed | |
$secure |
mixed |
GetFileDefinition
Parameters:
Parameter | Type | Description |
---|---|---|
$file |
mixed | |
$definition |
mixed |
ConnectFromProxy
Parameters:
Parameter | Type | Description |
---|---|---|
$arguments |
mixed | |
$headers |
mixed |
SendRequest
Parameters:
Parameter | Type | Description |
---|---|---|
$arguments |
mixed |
SetCookie
public SetCookie(mixed $name, mixed $value, mixed $expires = "", mixed $path = "/", mixed $domain = "", mixed $secure, mixed $verbatim): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
mixed | |
$value |
mixed | |
$expires |
mixed | |
$path |
mixed | |
$domain |
mixed | |
$secure |
mixed | |
$verbatim |
mixed |
SendRequestBody
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
mixed | |
$end_of_data |
mixed |
ReadReplyHeadersResponse
Parameters:
Parameter | Type | Description |
---|---|---|
$headers |
mixed |
Redirect
Parameters:
Parameter | Type | Description |
---|---|---|
$headers |
mixed |
Authenticate
public Authenticate(mixed& $headers, mixed $proxy, mixed& $proxy_authorization, mixed& $user, mixed& $password, mixed& $realm, mixed& $workstation): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$headers |
mixed | |
$proxy |
mixed | |
$proxy_authorization |
mixed | |
$user |
mixed | |
$password |
mixed | |
$realm |
mixed | |
$workstation |
mixed |
ReadReplyHeaders
Parameters:
Parameter | Type | Description |
---|---|---|
$headers |
mixed |
ReadReplyBody
Parameters:
Parameter | Type | Description |
---|---|---|
$body |
mixed | |
$length |
mixed |
ReadWholeReplyBody
Parameters:
Parameter | Type | Description |
---|---|---|
$body |
mixed |
SaveCookies
public SaveCookies(mixed& $cookies, mixed $domain = '', mixed $secure_only, mixed $persistent_only): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$cookies |
mixed | |
$domain |
mixed | |
$secure_only |
mixed | |
$persistent_only |
mixed |
SavePersistentCookies
public SavePersistentCookies(mixed& $cookies, mixed $domain = '', mixed $secure_only): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$cookies |
mixed | |
$domain |
mixed | |
$secure_only |
mixed |
GetPersistentCookies
public GetPersistentCookies(mixed& $cookies, mixed $domain = '', mixed $secure_only): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$cookies |
mixed | |
$domain |
mixed | |
$secure_only |
mixed |
RestoreCookies
Parameters:
Parameter | Type | Description |
---|---|---|
$cookies |
mixed | |
$clear |
mixed |
Automatically generated on 2025-03-18