WPDev.one
Core Class

Fsockopen

class Fsockopen // Constructor: function Object() { [native code] }

fsockopen HTTP transport

Methods 7 methods

Method / Return Description
request()
string

Perform a request

Parameters: $url: mixed, $headers: mixed, $data: mixed, $options: mixed
request_multiple()
array

Send multiple requests simultaneously

Parameters: $requests: mixed, $options: mixed
accept_encoding()
string

Retrieve the encodings we can accept

format_get()
string

Format a URL given GET data

Parameters: $url_parts: mixed, $data: mixed
connect_error_handler()
void

Error handler for stream_socket_client()

Parameters: $errno: mixed, $errstr: mixed
verify_certificate_from_context()
bool

Verify the certificate against common name and subject alternative names

Parameters: $host: mixed, $context: mixed
test()
bool

Self-test whether the transport can be used.

Parameters: $capabilities: mixed

Properties

Property / Type Description
$headers
mixed
public
No description available.
$info
mixed
public
No description available.
$max_bytes
mixed
public
No description available.
$connect_error
mixed
public
No description available.

Class Information

Source File
wp-includes/Requests/src/Transport/Fsockopen.php
Advertisement