Unable to use curl with cookie-jar

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I am trying to use curl for login request automation. Here, use of cookie-jar is must. When I use --cooki-jar cjar option, it shows following error.



root@kali:~# curl --cookie-jar cjar --output /root/Desktop/Curl/ https://www.google.com
curl: (1) Protocol " https" not supported or disabled in libcurl


When I did bit of googling around it, this link says that libcurl3 and here they say that need to install libssl-dev.



When I verified my system for both the libraries, in my Kali Linux box, latest versions are available. Still it is showing the error. So could someone help me to solve this issue.



System details:



root@kali:~# dpkg -s libssl-dev
Package: libssl-dev
Status: install ok installed
Priority: optional
Section: libdevel
Installed-Size: 6908
Maintainer: Debian OpenSSL Team <pkg-openssl-devel@lists.alioth.debian.org>
Architecture: amd64


Multi-Arch: same
Source: openssl
Version: 1.1.0g-2
Depends: libssl1.1 (= 1.1.0g-2)
Recommends: libssl-doc
Conflicts: libssl1.0-dev
Description: Secure Sockets Layer toolkit - development files
This package is part of the OpenSSL project's implementation of the SSL
and TLS cryptographic protocols for secure communication over the
Internet.
.
It contains development libraries, header files, and manpages for libssl
and libcrypto.
Homepage: https://www.openssl.org/



root@kali:~# dpkg -s libcurl3
Package: libcurl3
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 649
Maintainer: Alessandro Ghedini <ghedo@debian.org>
Architecture: amd64
Multi-Arch: same
Source: curl
Version: 7.57.0-1
Depends: libc6 (>= 2.17), libcomerr2 (>= 1.01), libgssapi-krb5-2 (>= 1.14+dfsg), libidn2-0 (>= 0.6), libk5crypto3 (>= 1.6.dfsg.2), libkrb5-3 (>= 1.6.dfsg.2), libldap-2.4-2 (>= 2.4.7), libnghttp2-14 (>= 1.12.0), libpsl5 (>= 0.13.0), librtmp1 (>= 2.4+20131018.git79459a2-3~), libssh2-1 (>= 1.7.0), libssl1.0.2 (>= 1.0.2d), zlib1g (>= 1:1.1.4)
Recommends: ca-certificates
Description: easy-to-use client-side URL transfer library (OpenSSL flavour)
libcurl is an easy-to-use client-side URL transfer library, supporting DICT,
FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S,
RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP.


.
libcurl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP
form based upload, proxies, cookies, user+password authentication (Basic,
Digest, NTLM, Negotiate, Kerberos), file transfer resume, http proxy tunneling
and more!
.
libcurl is free, thread-safe, IPv6 compatible, feature rich, well supported,
fast, thoroughly documented and is already used by many known, big and
successful companies and numerous applications.
.
SSL support is provided by OpenSSL.
Homepage: http://curl.haxx.se










share|improve this question





















  • what does curl --version | grep Protocols show?
    – Tim Kennedy
    Aug 8 at 15:30














up vote
0
down vote

favorite












I am trying to use curl for login request automation. Here, use of cookie-jar is must. When I use --cooki-jar cjar option, it shows following error.



root@kali:~# curl --cookie-jar cjar --output /root/Desktop/Curl/ https://www.google.com
curl: (1) Protocol " https" not supported or disabled in libcurl


When I did bit of googling around it, this link says that libcurl3 and here they say that need to install libssl-dev.



When I verified my system for both the libraries, in my Kali Linux box, latest versions are available. Still it is showing the error. So could someone help me to solve this issue.



System details:



root@kali:~# dpkg -s libssl-dev
Package: libssl-dev
Status: install ok installed
Priority: optional
Section: libdevel
Installed-Size: 6908
Maintainer: Debian OpenSSL Team <pkg-openssl-devel@lists.alioth.debian.org>
Architecture: amd64


Multi-Arch: same
Source: openssl
Version: 1.1.0g-2
Depends: libssl1.1 (= 1.1.0g-2)
Recommends: libssl-doc
Conflicts: libssl1.0-dev
Description: Secure Sockets Layer toolkit - development files
This package is part of the OpenSSL project's implementation of the SSL
and TLS cryptographic protocols for secure communication over the
Internet.
.
It contains development libraries, header files, and manpages for libssl
and libcrypto.
Homepage: https://www.openssl.org/



root@kali:~# dpkg -s libcurl3
Package: libcurl3
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 649
Maintainer: Alessandro Ghedini <ghedo@debian.org>
Architecture: amd64
Multi-Arch: same
Source: curl
Version: 7.57.0-1
Depends: libc6 (>= 2.17), libcomerr2 (>= 1.01), libgssapi-krb5-2 (>= 1.14+dfsg), libidn2-0 (>= 0.6), libk5crypto3 (>= 1.6.dfsg.2), libkrb5-3 (>= 1.6.dfsg.2), libldap-2.4-2 (>= 2.4.7), libnghttp2-14 (>= 1.12.0), libpsl5 (>= 0.13.0), librtmp1 (>= 2.4+20131018.git79459a2-3~), libssh2-1 (>= 1.7.0), libssl1.0.2 (>= 1.0.2d), zlib1g (>= 1:1.1.4)
Recommends: ca-certificates
Description: easy-to-use client-side URL transfer library (OpenSSL flavour)
libcurl is an easy-to-use client-side URL transfer library, supporting DICT,
FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S,
RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP.


.
libcurl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP
form based upload, proxies, cookies, user+password authentication (Basic,
Digest, NTLM, Negotiate, Kerberos), file transfer resume, http proxy tunneling
and more!
.
libcurl is free, thread-safe, IPv6 compatible, feature rich, well supported,
fast, thoroughly documented and is already used by many known, big and
successful companies and numerous applications.
.
SSL support is provided by OpenSSL.
Homepage: http://curl.haxx.se










share|improve this question





















  • what does curl --version | grep Protocols show?
    – Tim Kennedy
    Aug 8 at 15:30












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am trying to use curl for login request automation. Here, use of cookie-jar is must. When I use --cooki-jar cjar option, it shows following error.



root@kali:~# curl --cookie-jar cjar --output /root/Desktop/Curl/ https://www.google.com
curl: (1) Protocol " https" not supported or disabled in libcurl


When I did bit of googling around it, this link says that libcurl3 and here they say that need to install libssl-dev.



When I verified my system for both the libraries, in my Kali Linux box, latest versions are available. Still it is showing the error. So could someone help me to solve this issue.



System details:



root@kali:~# dpkg -s libssl-dev
Package: libssl-dev
Status: install ok installed
Priority: optional
Section: libdevel
Installed-Size: 6908
Maintainer: Debian OpenSSL Team <pkg-openssl-devel@lists.alioth.debian.org>
Architecture: amd64


Multi-Arch: same
Source: openssl
Version: 1.1.0g-2
Depends: libssl1.1 (= 1.1.0g-2)
Recommends: libssl-doc
Conflicts: libssl1.0-dev
Description: Secure Sockets Layer toolkit - development files
This package is part of the OpenSSL project's implementation of the SSL
and TLS cryptographic protocols for secure communication over the
Internet.
.
It contains development libraries, header files, and manpages for libssl
and libcrypto.
Homepage: https://www.openssl.org/



root@kali:~# dpkg -s libcurl3
Package: libcurl3
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 649
Maintainer: Alessandro Ghedini <ghedo@debian.org>
Architecture: amd64
Multi-Arch: same
Source: curl
Version: 7.57.0-1
Depends: libc6 (>= 2.17), libcomerr2 (>= 1.01), libgssapi-krb5-2 (>= 1.14+dfsg), libidn2-0 (>= 0.6), libk5crypto3 (>= 1.6.dfsg.2), libkrb5-3 (>= 1.6.dfsg.2), libldap-2.4-2 (>= 2.4.7), libnghttp2-14 (>= 1.12.0), libpsl5 (>= 0.13.0), librtmp1 (>= 2.4+20131018.git79459a2-3~), libssh2-1 (>= 1.7.0), libssl1.0.2 (>= 1.0.2d), zlib1g (>= 1:1.1.4)
Recommends: ca-certificates
Description: easy-to-use client-side URL transfer library (OpenSSL flavour)
libcurl is an easy-to-use client-side URL transfer library, supporting DICT,
FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S,
RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP.


.
libcurl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP
form based upload, proxies, cookies, user+password authentication (Basic,
Digest, NTLM, Negotiate, Kerberos), file transfer resume, http proxy tunneling
and more!
.
libcurl is free, thread-safe, IPv6 compatible, feature rich, well supported,
fast, thoroughly documented and is already used by many known, big and
successful companies and numerous applications.
.
SSL support is provided by OpenSSL.
Homepage: http://curl.haxx.se










share|improve this question













I am trying to use curl for login request automation. Here, use of cookie-jar is must. When I use --cooki-jar cjar option, it shows following error.



root@kali:~# curl --cookie-jar cjar --output /root/Desktop/Curl/ https://www.google.com
curl: (1) Protocol " https" not supported or disabled in libcurl


When I did bit of googling around it, this link says that libcurl3 and here they say that need to install libssl-dev.



When I verified my system for both the libraries, in my Kali Linux box, latest versions are available. Still it is showing the error. So could someone help me to solve this issue.



System details:



root@kali:~# dpkg -s libssl-dev
Package: libssl-dev
Status: install ok installed
Priority: optional
Section: libdevel
Installed-Size: 6908
Maintainer: Debian OpenSSL Team <pkg-openssl-devel@lists.alioth.debian.org>
Architecture: amd64


Multi-Arch: same
Source: openssl
Version: 1.1.0g-2
Depends: libssl1.1 (= 1.1.0g-2)
Recommends: libssl-doc
Conflicts: libssl1.0-dev
Description: Secure Sockets Layer toolkit - development files
This package is part of the OpenSSL project's implementation of the SSL
and TLS cryptographic protocols for secure communication over the
Internet.
.
It contains development libraries, header files, and manpages for libssl
and libcrypto.
Homepage: https://www.openssl.org/



root@kali:~# dpkg -s libcurl3
Package: libcurl3
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 649
Maintainer: Alessandro Ghedini <ghedo@debian.org>
Architecture: amd64
Multi-Arch: same
Source: curl
Version: 7.57.0-1
Depends: libc6 (>= 2.17), libcomerr2 (>= 1.01), libgssapi-krb5-2 (>= 1.14+dfsg), libidn2-0 (>= 0.6), libk5crypto3 (>= 1.6.dfsg.2), libkrb5-3 (>= 1.6.dfsg.2), libldap-2.4-2 (>= 2.4.7), libnghttp2-14 (>= 1.12.0), libpsl5 (>= 0.13.0), librtmp1 (>= 2.4+20131018.git79459a2-3~), libssh2-1 (>= 1.7.0), libssl1.0.2 (>= 1.0.2d), zlib1g (>= 1:1.1.4)
Recommends: ca-certificates
Description: easy-to-use client-side URL transfer library (OpenSSL flavour)
libcurl is an easy-to-use client-side URL transfer library, supporting DICT,
FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S,
RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP.


.
libcurl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP
form based upload, proxies, cookies, user+password authentication (Basic,
Digest, NTLM, Negotiate, Kerberos), file transfer resume, http proxy tunneling
and more!
.
libcurl is free, thread-safe, IPv6 compatible, feature rich, well supported,
fast, thoroughly documented and is already used by many known, big and
successful companies and numerous applications.
.
SSL support is provided by OpenSSL.
Homepage: http://curl.haxx.se







curl http https






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 8 at 12:46









guru

1




1











  • what does curl --version | grep Protocols show?
    – Tim Kennedy
    Aug 8 at 15:30
















  • what does curl --version | grep Protocols show?
    – Tim Kennedy
    Aug 8 at 15:30















what does curl --version | grep Protocols show?
– Tim Kennedy
Aug 8 at 15:30




what does curl --version | grep Protocols show?
– Tim Kennedy
Aug 8 at 15:30










1 Answer
1






active

oldest

votes

















up vote
0
down vote













You have unexpected backslash in command and also --output should be a filename. Try this:



curl --cookie-jar cjar --output /root/Desktop/Curl/output.html https://www.google.com





share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f461279%2funable-to-use-curl-with-cookie-jar%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    You have unexpected backslash in command and also --output should be a filename. Try this:



    curl --cookie-jar cjar --output /root/Desktop/Curl/output.html https://www.google.com





    share|improve this answer
























      up vote
      0
      down vote













      You have unexpected backslash in command and also --output should be a filename. Try this:



      curl --cookie-jar cjar --output /root/Desktop/Curl/output.html https://www.google.com





      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        You have unexpected backslash in command and also --output should be a filename. Try this:



        curl --cookie-jar cjar --output /root/Desktop/Curl/output.html https://www.google.com





        share|improve this answer












        You have unexpected backslash in command and also --output should be a filename. Try this:



        curl --cookie-jar cjar --output /root/Desktop/Curl/output.html https://www.google.com






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 8 at 14:32









        Eugene Ionichev

        161




        161



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f461279%2funable-to-use-curl-with-cookie-jar%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?