curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Cmd.exe and PowerShell ISE in MS Windows 10

From: via curl-users <curl-users_at_cool.haxx.se>
Date: Thu, 6 Feb 2020 21:29:03 +0300

Compare results of two identical actions (calls with parameters -V and -I) in Cmd.exe and in
«PowerShell ISE».

Version info by Cmd.exe:
= = = = = = = = = = Begin = = = = = = = = = =
.\curl-7.68.0-win64-mingw\bin\curl.exe -V
curl 7.68.0 (x86_64-pc-win32) libcurl/7.68.0 OpenSSL/1.1.1d (Schannel) zlib/1.2.11 brotli/1.0.7 WinIDN libssh2/1.9.0 nghttp2/1.40.0
Release-Date: 2020-01-08
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile MultiSSL NTLM SPNEGO SSL SSPI TLS-SRP brotli libz
= = = = = = = = = = End = = = = = = = = = =

Version info by «PowerShell ISE»:
= = = = = = = = = = Begin = = = = = = = = = =
& ".\curl-7.68.0-win64-mingw\bin\curl.exe" "-V"
curl 7.68.0 (x86_64-pc-win32) libcurl/7.68.0 OpenSSL/1.1.1d (Schannel) zlib/1.2.11 brotli/1.0.7 WinIDN libssh2/1.9.0 nghttp2/1.40.0
Release-Date: 2020-01-08
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile MultiSSL NTLM SPNEGO SSL SSPI TLS-SRP brotli libz
= = = = = = = = = = End = = = = = = = = = =
Oll Korrect, identically to Cmd.exe output

Head by Cmd.exe:
= = = = = = = = = = Begin = = = = = = = = = =
.\curl-7.68.0-win64-mingw\bin\curl.exe -I https://curl.haxx.se/windows/dl-7.68.0/curl-7.68.0-win64-mingw.zip
HTTP/2 200
server: Apache
x-frame-options: SAMEORIGIN
last-modified: Wed, 08 Jan 2020 05:33:42 GMT
etag: "3209a3-59b9a3c455980"
cache-control: max-age=31536000
expires: Thu, 07 Jan 2021 12:27:01 GMT
x-content-type-options: nosniff
content-security-policy: default-src 'self' www.fastly-insights.com; style-src 'unsafe-inline' 'self'
strict-transport-security: max-age=31536000; includeSubDomains;
content-type: application/zip
via: 1.1 varnish
accept-ranges: bytes
date: Thu, 06 Feb 2020 18:00:51 GMT
via: 1.1 varnish
age: 2525630
x-served-by: cache-bma1628-BMA, cache-ams21048-AMS
x-cache: HIT, HIT
x-cache-hits: 1, 1
x-timer: S1581012052.632972,VS0,VE6
content-length: 3279267
= = = = = = = = = = End = = = = = = = = = =

Head by «PowerShell ISE»:
= = = = = = = = = = Begin = = = = = = = = = =
& ".\curl-7.68.0-win64-mingw\bin\curl.exe" "-I" "https://curl.haxx.se/windows/dl-7.68.0/curl-7.68.0-win64-mingw.zip"
curl.exe : % Total % Received % Xferd Average Speed Time Time Time Current
строка:1 знак:1
+ & ".\curl-7.68.0-win64-mingw\bin\curl.exe" "-I" "https://curl.haxx.se ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: ( % Total % ... Time Current:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
                                 Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
  0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
  0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
  0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
  0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
  0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
  0 3202k 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
HTTP/2 200
server: Apache
x-frame-options: SAMEORIGIN
last-modified: Wed, 08 Jan 2020 05:33:42 GMT
etag: "3209a3-59b9a3c455980"
cache-control: max-age=31536000
expires: Thu, 07 Jan 2021 12:27:01 GMT
x-content-type-options: nosniff
content-security-policy: default-src 'self' www.fastly-insights.com; style-src 'unsafe-inline' 'self'
strict-transport-security: max-age=31536000; includeSubDomains;
content-type: application/zip
via: 1.1 varnish
accept-ranges: bytes
date: Thu, 06 Feb 2020 18:02:04 GMT
via: 1.1 varnish
age: 2525702
x-served-by: cache-bma1628-BMA, cache-ams21034-AMS
x-cache: HIT, HIT
x-cache-hits: 1, 1
x-timer: S1581012124.391053,VS0,VE6
content-length: 3279267
= = = = = = = = = = End = = = = = = = = = =
Pink text of error. Is it normally or bug?
With parameter -O (download file) pink text too (much more).
What is «FullyQualifiedErrorId : NativeCommandError»? Is it error of Windows or of curl?
Please, do not talk about parameter --silent and mode SilentlyContinue. Do not hide errors if they
exists.

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-02-06