New answers tagged

0

With pipe version you loose script interactivity, as you pipe curl stdout to sh stdin. So no keyboard input and possible script crash when awaiting input. Other answers here are also important.


1

I know that this is a old thread, but I just came across the same problem using Fedora in a corporate environment with as proxy server. The link to the issue provided by sourcejedi in his answer got some attention in 2018, where Kevin Kofler stated You need to set the ProxyHTTP= in /etc/PackageKit/PackageKit.conf I tried this, and it actually worked for ...


4

That URL contains an &, this means that your command would start curl http://example.com/endpoint/?arg1=val1 in the background, and then set the shell variable arg2 to the value val2, since that's what the next bit of the URL means when the shell parses the line. Use quotes around the URL: curl 'http://example.com/endpoint/?arg1=val1&arg2=val2'


1

What does "action" mean in " curl selects which methods to use on its own depending on what action to ask for"? I think it refers to the various options that modify what curl does. It doesn't look like they'd be explicitly called "actions" in the man page, but if they say "Requests X using method FOO", then it would seem to apply. -I/--head asks for headers ...


1

What does "action" mean in " curl selects which methods to use on its own depending on what action to ask for"? See the section on the HTTP protocol, which “defines” the term: HTTP is plain ASCII text lines being sent by the client to a server to request a particular action, and then the server replies a few text lines before the actual requested content ...


-1

I know that's not exactly the answer to the question, but it's an alternative approach that can work for anyone looking for a solution to the problem (for development environment). You can use Let's Encrypt certificates for free, making it trusted in most browsers and when using curl. You only need to have a public Ip for your environment and a DNS.


3

There isn't a single answer: Firefox uses NSS to provide SSL/TLS A number of other programs use GnuTLS Still others use OpenSSL. And none of this tells you what version of SSL or TLS is actually in use, it just provides limits on what's available. For any given connection, the client and server negotiate a specific version of SSL/TLS and specific ciphers, ...


1

If you're using gnutls you can query it with: $ certutil -v certtool 3.6.7 Copyright (C) 2000-2019 Free Software Foundation, and others, all rights reserved. This is free software. It is licensed for use, modification and redistribution under the terms of the GNU General Public License, version 3 or later <http://gnu.org/licenses/gpl.html> Please ...


3

Assuming you are using the default openssl implementation, you can query it directly: $ openssl version OpenSSL 1.1.1 11 Sep 2018 or more verbosely $ openssl version -a OpenSSL 1.1.1 11 Sep 2018 built on: Tue Nov 12 16:58:35 2019 UTC platform: debian-amd64 options: bn(64,64) rc4(16x,int) des(int) blowfish(ptr) compiler: gcc -fPIC -pthread -m64 -Wa,--...


6

You can check the installed package version with dpkg -l | grep -i openssl. The actual TLS/SSL version used depends on what the server offers or what is negotiated between server and client in any given session.


0

By examining the html from the site, it can be seen that the "download pdf" links use a meta element with the http-eqiv="refresh" attribute to redirect to the real link. Whilst tools like curl or wget can handle standard http redirects, they don't parse or interpret html, and thus can't handle this type of redirect. As we're using a shell, one possible ...


Top 50 recent answers are included