replace support for pear http_request with support for php HttpRequest class