Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-includes
/
Requests
/
Proxy
/
File Content:
HTTP-20260621221622.php
<?php /** * HTTP Proxy connection interface * * @package Requests * @subpackage Proxy * @since 1.6 */ /** * HTTP Proxy connection interface * * Provides a handler for connection via an HTTP proxy * * @package Requests * @subpackage Proxy * @since 1.6 */ class Requests_Proxy_HTTP implements Requests_Proxy { /** * Proxy host and port * * Notation: "host:port" (eg 127.0.0.1:8080 or someproxy.com:3128) * * @var string */ public $proxy; /** * Username * * @var string */ public $user; /** * Password * * @var string */ public $pass; /** * Do we need to authenticate? (ie username & password have been provided) * * @var boolean */ public $use_authentication; /** * Constructor * * @since 1.6 * @throws Requests_Exception On incorrect number of arguments (`authbasicbadargs`) * @param array|null $args Array of user and password. Must have exactly two elements */ public function __construct($args = null) { if (is_string($args)) { $this->proxy = $args; } elseif (is_array($args)) { if (count($args) == 1) { list($this->proxy) = $args; } elseif (count($args) == 3) { list($this->proxy, $this->user, $this->pass) = $args; $this->use_authentication = true; } else { throw new Requests_Exception('Invalid number of arguments', 'proxyhttpbadargs'); } } } /** * Register the necessary callbacks * * @since 1.6 * @see curl_before_send * @see fsockopen_remote_socket * @see fsockopen_remote_host_path * @see fsockopen_header * @param Requests_Hooks $hooks Hook system */ public function register(Requests_Hooks &$hooks) { $hooks->register('curl.before_send', array(&$this, 'curl_before_send')); $hooks->register('fsockopen.remote_socket', array(&$this, 'fsockopen_remote_socket')); $hooks->register('fsockopen.remote_host_path', array(&$this, 'fsockopen_remote_host_path')); if ($this->use_authentication) { $hooks->register('fsockopen.after_headers', array(&$this, 'fsockopen_header')); } } /** * Set cURL parameters before the data is sent * * @since 1.6 * @param resource $handle cURL resource */ public function curl_before_send(&$handle) { curl_setopt($handle, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); curl_setopt($handle, CURLOPT_PROXY, $this->proxy); if ($this->use_authentication) { curl_setopt($handle, CURLOPT_PROXYAUTH, CURLAUTH_ANY); curl_setopt($handle, CURLOPT_PROXYUSERPWD, $this->get_auth_string()); } } /** * Alter remote socket information before opening socket connection * * @since 1.6 * @param string $remote_socket Socket connection string */ public function fsockopen_remote_socket(&$remote_socket) { $remote_socket = $this->proxy; } /** * 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 */ public function fsockopen_remote_host_path(&$path, $url) { $path = $url; } /** * Add extra headers to the request before sending * * @since 1.6 * @param string $out HTTP header string */ public function fsockopen_header(&$out) { $out .= sprintf("Proxy-Authorization: Basic %s\r\n", base64_encode($this->get_auth_string())); } /** * Get the authentication string (user:pass) * * @since 1.6 * @return string */ public function get_auth_string() { return $this->user . ':' . $this->pass; } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
418.php
478 bytes
0644
Category.php
3944 bytes
0644
ChaCha20-20260704024523.php
12934 bytes
0644
ChaCha20.php
12934 bytes
0644
Exception.php
1214 bytes
0644
HTTP-20260621221622.php
3471 bytes
0644
SMTP.php
47285 bytes
0644
admin-bar.css
23876 bytes
0644
autoload.php
2731 bytes
0644
block-serialization-default-parser.js
19531 bytes
0644
block.json
601 bytes
0644
class-json.php
43441 bytes
0644
class-wp-comment-query.php
45483 bytes
0644
class-wp-http-streams.php
16117 bytes
0644
class-wp-network-query.php
19169 bytes
0644
class-wp-network.php
12379 bytes
0644
class-wp-oembed-controller.php
6793 bytes
0644
class-wp-site.php
7428 bytes
0644
class-wp-sitemaps-posts.php
5875 bytes
0644
class-wp-sitemaps-stylesheet.php
8599 bytes
0644
class-wp-sitemaps.php
6290 bytes
0644
class-wp-theme.php
51601 bytes
0644
class-wp-widget-media-image.php
12037 bytes
0644
customize-loader.js
7904 bytes
0644
customize-loader.min.js
3553 bytes
0644
data.js
147192 bytes
0644
htmlhint.js
17735 bytes
0644
https-detection-20260623211809-20260706045855.php
6871 bytes
0644
https-detection-20260623211809-20260706212316.php
6871 bytes
0644
https-detection-20260623211809.php
6871 bytes
0644
https-detection-20260624134150.php
6871 bytes
0644
https-detection.php
6871 bytes
0644
https-migration-20260621215951.php
4730 bytes
0644
https-migration-20260621222700-20260622020253-20260707051726.php
4730 bytes
0644
https-migration-20260621222700-20260622020253.php
4730 bytes
0644
https-migration-20260621222700-20260623080917.php
4730 bytes
0644
https-migration-20260621222700.php
4730 bytes
0644
https-migration-20260622015718-20260624025124.php
4730 bytes
0644
https-migration-20260622015718.php
4730 bytes
0644
https-migration-20260622015741-20260624070756.php
4730 bytes
0644
https-migration-20260622015741.php
4730 bytes
0644
https-migration-20260622015815.php
4730 bytes
0644
https-migration-20260622055634.php
4730 bytes
0644
https-migration-20260622071438.php
4730 bytes
0644
https-migration-20260622194220.php
4730 bytes
0644
https-migration-20260622204948.php
4730 bytes
0644
https-migration-20260622211332.php
4730 bytes
0644
https-migration.php
4730 bytes
0644
json2-20260704153819.js
18422 bytes
0644
json2.js
18422 bytes
0644
latest-comments.php
4999 bytes
0644
locale.php
162 bytes
0644
nav-menu-template.php
23296 bytes
0644
php72compat_const-20260705075553.php
4597 bytes
0644
php72compat_const.php
4597 bytes
0644
revision.php
22027 bytes
0644
shortcode-20260622010901.php
697 bytes
0644
shortcode-20260622122648.php
697 bytes
0644
shortcode-20260705105239.php
697 bytes
0644
shortcode.min.js
4096 bytes
0644
shortcode.php
697 bytes
0644
taxonomy-20260704073402.php
165888 bytes
0644
taxonomy.php
165888 bytes
0644
wp-content.css
8624 bytes
0644
wp-embed-template-ie.min.css
1473 bytes
0644
N4ST4R_ID | Naxtarrr