HttpRequestManager code simplified