If request body is empty fall back to query string