HttpRequest: better ssl detection, resolved #10