CURL Error 7
-
I am using PHP 7.2.x version and WP 5.8.1.
all the curl, file related libraries are in place.
but none of the scripts related to file_get_contents(), curl or wp_remote_get aren’t working.when used wp_remote_get getting following error – WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] => cURL error 7: ) )
When using CURL, curl info is coming as follows without any errors :-
Array ( [url] => feedurl?token [content_type] => [http_code] => 0 [header_size] => 0 [request_size] => 0 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 0.002587 [namelookup_time] => 0.002671 [connect_time] => 0 [pretransfer_time] => 0 [size_upload] => 0 [size_download] => 0 [speed_download] => 0 [speed_upload] => 0 [download_content_length] => -1 [upload_content_length] => -1 [starttransfer_time] => 0 [redirect_time] => 0 [redirect_url] => [primary_ip] => [certinfo] => Array ( ) [primary_port] => 0 [local_ip] => [local_port] => 0 )
Can someone please help me to fix these issues and make it working.
- The topic ‘CURL Error 7’ is closed to new replies.