fix possible endless loop in http_parse_param()
added test routine for HSTS feature