Optimize work with curl.

Do not close curl connection after each request.
While merging/testing it, the curl options resetting does not work when the commands are switching between different http methods, like `POST`, `GET` and `DELETE`.