An Unexpected HTTP Error occurred during the API request
Very strange, while installing new plugins I saw following error in the Plugin page in the WordPress Admin on following page
/wp-admin/plugin-install.php
An Unexpected HTTP Error occurred during the API request.
I’ve to dog down further to find out what could be the problem. From the error it is obvious that it is a timeout issues. The website and internet connection seems to be slow today (Sunday).
BT broadband sucks during the weekends, they come to dead slow quite often.
In the earlier versions before 3.0 the solution was to increase the timeout value in http.php file. However I can’t find this piece of code in wordpress 3.0.1.
Solution yet to be found…
Just to update those who have tuned to this post…
This was a timeout issues as it is clear from the error. May be server was hibernating or Internet connection was slow.
This error doesn’t appear anymore.
So guys I’m not going to investigate into it anymore.
If you still can’t find a solution then try to change the timeout value as explained elsewhere and see if it solves.
If not then switch to a dedicated server, shared hosting always sucks….
Unfortunately I host my own blog on such a sucker host ;) may be sometimes later I’ll swith host.


u can find it at wp include/class-http.php
[Reply]
Ajay Kumar Singh Reply:
August 3rd, 2010 at 9:19 am
Thanks buddy!!
However the error is gone after Internet connection is back to normal.
[Reply]
Ajay, what good post you wrote! If you bothered to flip through google searches, the first page is full of the “solution”. You can find the said lines in file wp-include/class-http.php
But it doesn’t solve the issue. Did you investigate further?
I am doing but no luck yet!
[Reply]
please read here and discussion more : http://wordpress.org/support/topic/an-unexpected-http-error-occured-during-the-api-request-a-new-variant
[Reply]
Dear mijie please explain me how can i solve this problem
“An Unexpected HTTP Error occurred during the API request”.
[Reply]
i think you use free web hosting that”s why
[Reply]
not working for me too.
[Reply]
Burovets Reply:
April 27th, 2011 at 9:06 am
All who have this error, check your DNS settings.
[Reply]
Ajay Kumar Singh Reply:
April 27th, 2011 at 10:46 am
Tx Burovets.
And what to check in DNS settings?
[Reply]
I am also having An Unexpected HTTP Error occurred during the API request. problem
how to resolve
please helpppppppppppppppppppp
[Reply]
An Unexpected HTTP Error occurred during the API request. error Please help me out
[Reply]
i have the same problem too :(
[Reply]