-w %{JSON}
Date: Wed, 20 May 2020 14:08:24 +0300
At В«MS Windows PowerShellВ»:
$arrReport = & curl.exe -D Dump.txt -J -O -R -w %{JSON} https://download-new.utorrent.com/endpoint/utweb/track/stable/os/win
$arrReport | Out-Host
curl: Saved to filename 'utweb_installer.exe'
{"url_effective":"https://download-new.utorrent.com/endpoint/utweb/track/stable/os/win","http_code":200,"response_code":200,"http_connect":0,"time_total":33.182128,"time_namelookup":1.262623,"time_connect":1.486929,"time_appconnect":3.771092,"time_pretransfer":3.771316,"time_starttransfer":4.223902,"size_header":512,"size_request":177,"size_download":163328,"size_upload":0,"speed_download":4922,"speed_upload":0,"content_type":"application/x-msdownload","num_connects":1,"time_redirect":0.000000,"num_redirects":0,"ssl_verify_result":0,"proxy_ssl_verify_result":0,"filename_effective":"utweb_installer.exe","remote_ip":"67.215.238.66","remote_port":443,"local_ip":"192.168.1.33","local_port":49962,"http_version":"1.1","scheme":"HTTPS","curl_version":"libcurl/7.70.0 OpenSSL/1.1.1g (Schannel) zlib/1.2.11 brotli/1.0.7 WinIDN libssh2/1.9.0 nghttp2/1.40.0"}
An additional first line interferes with the conversion from JSON.
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-05-20