made httprequest class... not working