normalize curl requests