added support for php HttpRequest object