fixed httprequest creation