Improve parameters passing to CURL