Fix Copy as cURL omitting headers and body on failed requests (#9963)
Fix Copy as cURL omitting headers and body on failed requests.
Timed-out and cancelled POSTs never complete a response, so the Network
profiler dropped request data from the generated curl command.
---------
Co-authored-by: Sam Rawlins <sam.rawlins@gmail.com>