fix the crash in HttpRequest, add http request with cookie