1
votes

I'm trying to make some HTTP request with Apache but it gives me an error saying

fatal error: Class 'HttpRequest' not found

Why do I need to handle HTTP requests with an HTTP extension (pecl/pear)? Why does not running a web serve handle it?

The HttpRequest class provides functions/methods for PHP to make HTTP requests. - Charlotte Dunois
Doing HTTP requests has nothing to do with running a webserver. - Charlotte Dunois
my point is i have apache , why doesnt apache handles the http request im making, why does it require tht i use pecl /pear extension - slim
Because a web server isn't a client. - Charlotte Dunois
Please share more details, like the code involved and your attempts to resolve the problem. Also, how is this related to PEAR, PECL, or Apache? - Nico Haase