The reason to save the curl output was probably to have the HTTP headers before the response payload in the EXPECT part