Error in WooCommerce USPS Shipping Plugin

I get the following error in the WooCommerce USPS Delivery Plugin: "

USPS REQUEST FAILEDcURL error 5: Could not resolve proxy: http_proxy

Can someone help with how to resolve this?

I was looking for him, but could not find anything related.

+4
source share
1 answer

In the cURL documentation, code 5 means that the proxy server cannot be resolved (it cannot be reached in the DNS query):

CURLE_COULDNT_RESOLVE_PROXY (5)

Failed to resolve proxy. This proxy host cannot be resolved.

WF_Shipping_USPS wp_remote_post() API USPS. , - / "http_proxy", - vars Linux.

wp-config.php ( , ):

/* Configure proxy Server */
define('WP_PROXY_HOST', 'www-cache.leeds.ac.uk');
define('WP_PROXY_PORT', '3128');
define('WP_PROXY_USERNAME', '');
define('WP_PROXY_PASSWORD', '');
define('WP_PROXY_BYPASS_HOSTS', 'localhost');

Linux, :

echo $HTTP_PROXY

, - .

- "http_proxy", -. , , . -, - Wordpress.

+1

Source: https://habr.com/ru/post/1680413/


All Articles