Repository navigation
v0.1.2
Adds warnings when the proxy configuration cannot be used. A URL or host without a port, an invalid port, a configuration with no proxy address, or a scheme other than http:// leaves the proxy off with a warning that names the setting. Setting only a username or only a password also prints a warning.
A bare IPv6 address now works in the host setting, such as 2001:db8::1.
The README now covers localhost handling in WordPress core and WP-CLI, and HTTPS requests through a proxy when PHP has no cURL extension.
Upgrade note: a socks5:// or https:// proxy URL, including one read from an environment variable with env: true, is now ignored with a warning. Only HTTP proxies are supported, so use an http:// URL.
Install:
wp package install ekamran/wp-cli-http-proxy-command:@stable
Updating from an earlier version: wp package update keeps the installed release. Run the install command above again to move to v0.1.2.
Tested with WP-CLI 2.12.0 on PHP 7.2 and PHP 8.4, and WP-CLI nightly on PHP 8.5.