“An Unexpected HTTP Error occurred during the API request”
I have been getting this error on my client WordPress Admin Dashboard as I tried to install a plugin. A quick fix to the error is to edit http.php file under wp-includes folder of your wordpress site/blog installation.
-Go to you root directory where your wordpress blog/site is installed.
-Go to wp-includes folder/directory. Under the folder/directory, find http.php.
-Download it and open it with php or any html editor.
-Go to line No. 226(for wordpress 2.9) and find , and replace it with 'timeout' => apply_filters( 'http_request_timeout', 5)
.'timeout' => apply_filters( 'http_request_timeout', 30),
-Save it and upload it to wp-includes directory.
You are good to GO!!