[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/Requests/Proxy/ -> Http.php (summary)

HTTP Proxy connection interface

File Size: 167 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions

  __construct()
  register()
  curl_before_send()
  fsockopen_remote_socket()
  fsockopen_remote_host_path()
  fsockopen_header()
  get_auth_string()

Functions
Functions that are not part of a class:

__construct($args = null)   X-Ref
Constructor

since: 1.6
param: array|string|null $args Proxy as a string or an array of proxy, user and password.

register(Hooks $hooks)   X-Ref
Register the necessary callbacks

since: 1.6
param: \WpOrg\Requests\Hooks $hooks Hook system

curl_before_send(&$handle)   X-Ref
Set cURL parameters before the data is sent

since: 1.6
param: resource|\CurlHandle $handle cURL handle

fsockopen_remote_socket(&$remote_socket)   X-Ref
Alter remote socket information before opening socket connection

since: 1.6
param: string $remote_socket Socket connection string

fsockopen_remote_host_path(&$path, $url)   X-Ref
Alter remote path before getting stream data

since: 1.6
param: string $path Path to send in HTTP request string ("GET ...")
param: string $url Full URL we're requesting

fsockopen_header(&$out)   X-Ref
Add extra headers to the request before sending

since: 1.6
param: string $out HTTP header string

get_auth_string()   X-Ref
Get the authentication string (user:pass)

since: 1.6
return: string



Generated: Mon Dec 6 01:00:03 2021 Cross-referenced by PHPXref 0.7.1