Fix query params on curl requests