Introduce a curl_command helper
This aims to reduce the duplication in curl verifications and alsoallows checking both the body and the response code.
Introduce a curl_command helper
This aims to reduce the duplication in curl verifications and also
allows checking both the body and the response code.