Added basic http request handling