Added support for custom HTTP requests