New function cs_get_host_args for method/host/path parsing.