AIX Open Source

 View Only
  • 1.  Not able to connect via Curl or wget when using https in URL, while able to connect via http.

    Posted Tue December 13, 2022 06:10 AM
    Hello,

    Need help on resolving the issue of not able to connect via Curl or wget when using https in URL, while able to connect via http.

    Error is as below while command execution.

    root@#########:/ $wget https://www.google.com" title="https://www.google.com" href="https://www.google.com/" rel="noopener noreferrer" target="_blank" class="fui-Link ___m14voj0 f3rmtva f1ern45e f1deefiw f1n71otn f1q5o8ev f1h8hb77 f1vxd6vx f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f9n3di6 f1ids18y fygtlnl f1deo86v f12x56k7 f1iescvh ftqa4ok f50u1b5 fs3pq8b f1hghxdh f1tymzes f1x7u7e9 f1cmlufx f10aw75t fsle3fq" tabindex="-1">https://www.google.com
    https://www.google.com:" title="https://www.google.com:" href="https://www.google.com/" rel="noopener noreferrer" target="_blank" class="fui-Link ___m14voj0 f3rmtva f1ern45e f1deefiw f1n71otn f1q5o8ev f1h8hb77 f1vxd6vx f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f9n3di6 f1ids18y fygtlnl f1deo86v f12x56k7 f1iescvh ftqa4ok f50u1b5 fs3pq8b f1hghxdh f1tymzes f1x7u7e9 f1cmlufx f10aw75t fsle3fq" tabindex="-1">https://www.google.com: Unsupported scheme.
    root@#########:/ $ wget http://www.google.com" title="http://www.google.com" href="http://www.google.com/" rel="noopener noreferrer" target="_blank" class="fui-Link ___m14voj0 f3rmtva f1ern45e f1deefiw f1n71otn f1q5o8ev f1h8hb77 f1vxd6vx f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f9n3di6 f1ids18y fygtlnl f1deo86v f12x56k7 f1iescvh ftqa4ok f50u1b5 fs3pq8b f1hghxdh f1tymzes f1x7u7e9 f1cmlufx f10aw75t fsle3fq" tabindex="-1">http://www.google.com
    --15:13:06--  http://www.google.com/" title="http://www.google.com/" href="http://www.google.com/" rel="noopener noreferrer" target="_blank" class="fui-Link ___m14voj0 f3rmtva f1ern45e f1deefiw f1n71otn f1q5o8ev f1h8hb77 f1vxd6vx f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f9n3di6 f1ids18y fygtlnl f1deo86v f12x56k7 f1iescvh ftqa4ok f50u1b5 fs3pq8b f1hghxdh f1tymzes f1x7u7e9 f1cmlufx f10aw75t fsle3fq" tabindex="-1">http://www.google.com/
               => `index.html.10'
    Connecting to ###########:8080... connected.
    Proxy request sent, awaiting response... 200 OK
    Length: unspecified [text/html]

       [ <=>                                                                                                                         ] 16,441        --.--K/s

    15:13:06 (252.89 MB/s) - `index.html.10' saved [16441]

    ===============================================
    root@#########: $ curl -v http://www.google.com" title="http://www.google.com" href="http://www.google.com/" rel="noopener noreferrer" target="_blank" class="fui-Link ___m14voj0 f3rmtva f1ern45e f1deefiw f1n71otn f1q5o8ev f1h8hb77 f1vxd6vx f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f9n3di6 f1ids18y fygtlnl f1deo86v f12x56k7 f1iescvh ftqa4ok f50u1b5 fs3pq8b f1hghxdh f1tymzes f1x7u7e9 f1cmlufx f10aw75t fsle3fq" tabindex="-1">http://www.google.com | head -1
    * gethostbyname_r(2) failed for www.google.com" title="https://www.google.com" href="https://www.google.com/" rel="noopener noreferrer" target="_blank" class="fui-Link ___m14voj0 f3rmtva f1ern45e f1deefiw f1n71otn f1q5o8ev f1h8hb77 f1vxd6vx f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f9n3di6 f1ids18y fygtlnl f1deo86v f12x56k7 f1iescvh ftqa4ok f50u1b5 fs3pq8b f1hghxdh f1tymzes f1x7u7e9 f1cmlufx f10aw75t fsle3fq" tabindex="-1">www.google.com
    * Closing connection #0
    curl: (6) Couldn't resolve host 'www.google.com'
    root@########## $ curl -v https://www.google.com" title="https://www.google.com" href="https://www.google.com/" rel="noopener noreferrer" target="_blank" class="fui-Link ___m14voj0 f3rmtva f1ern45e f1deefiw f1n71otn f1q5o8ev f1h8hb77 f1vxd6vx f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f9n3di6 f1ids18y fygtlnl f1deo86v f12x56k7 f1iescvh ftqa4ok f50u1b5 fs3pq8b f1hghxdh f1tymzes f1x7u7e9 f1cmlufx f10aw75t fsle3fq" tabindex="-1">https://www.google.com | head -1
    curl: (1) libcurl was built with SSL disabled, https: not supported!


    SYSTEM DETAILS WITH VERSION
    ########################################################################################################
    My OS version
    ===========
    7100-05-08-2114

    SSL Version
    =========
    openssl.base            1.0.2.2101  COMMITTED  Open Secure Socket Layer
    openssl.license         1.0.2.2101  COMMITTED  Open Secure Socket License
    openssl.man.en_US       1.0.2.2101  COMMITTED  Open Secure Socket Layer
                                                     SSL)
                                                     SSL)
    openssl.base            1.0.2.2101  COMMITTED  Open Secure Socket Layer

    RPM version installed.
    rpm -qa
    atk-1.10.3-2.ppc
    bash-doc-3.0-1.ppc
    cairo-1.0.2-6.ppc
    cpio-2.5-1.ppc
    expect-5.32-1.ppc
    freetype2-2.1.7-5.ppc
    glib2-2.8.1-3.ppc
    gzip-1.2.4a-9.ppc
    libpng-1.2.8-5.ppc
    libxml2-2.6.17-3.ppc
    pango-1.10.0-2.ppc
    tcl-8.3.3-1.ppc
    unzip-5.51-1.ppc
    xft-2.1.6-5.ppc
    zip-2.3-3.ppc
    wget-1.9.1-1.ppc
    bash-4.2-2.ppc
    bzip2-1.0.2-4.ppc
    conserver-8.1.7-2.ppc
    expat-1.95.7-4.ppc
    fontconfig-2.2.2-6.ppc
    gettext-0.10.40-6.ppc
    gtk2-2.8.3-9.ppc
    libjpeg-6b-6.ppc
    libtiff-3.6.1-4.ppc
    osinstall-1.0-1.noarch
    sudo-1.6.7p5-3.ppc
    tk-8.3.3-1.ppc
    xcursor-1.0.2-3.ppc
    xrender-0.8.4-7.ppc
    zlib-1.2.3-3.ppc
    curl-7.9.3-2.ppc
    curl-devel-7.9.3-2.ppc
    AIX-rpm-7.1.5.33-19.ppc

    ​#######################################################################################################

    Request to have a look and suggest any action.

    Kindest Regards
    Prajai.KN
    ​​​

    ------------------------------
    PRAJAI K N
    ------------------------------


  • 2.  RE: Not able to connect via Curl or wget when using https in URL, while able to connect via http.

    Posted Wed December 14, 2022 11:27 PM
    Hi Team,

    Can we get any suggestion on raised issue.

    While putting https it is not working.

    ------------------------------
    PRAJAI K N
    ------------------------------



  • 3.  RE: Not able to connect via Curl or wget when using https in URL, while able to connect via http.

    Posted Tue December 20, 2022 12:06 PM
    You are using age old curl and wget. Probably published in 2002-2004 time.

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 4.  RE: Not able to connect via Curl or wget when using https in URL, while able to connect via http.

    Posted Mon January 02, 2023 11:07 PM
      |   view attached
    Hi,

    We have upgraded the wget from 1.9.1-1 to 1.21.2, but now it is giving some different package error while connecting http or https.

    root@#######:/ $ wget https://quest.iib.gov.in/questsvc/service.asmx

    exec(): 0509-036 Cannot load program wget because of the following errors:

            0509-022 Cannot load module /opt/freeware/lib/libiconv.a(libiconv.so.2).

            0509-150   Dependent module libgcc_s.a(shr.o) could not be loaded.

            0509-022 Cannot load module libgcc_s.a(shr.o).

            0509-026 System error: A file or directory in the path name does not exist.

            0509-022 Cannot load module wget_64.

            0509-150   Dependent module /opt/freeware/lib/libiconv.a(libiconv.so.2) could not be loaded.

            0509-022 Cannot load module .

     

    root@#######:/ $ wget http://quest.iib.gov.in/questsvc/service.asmx

    exec(): 0509-036 Cannot load program wget because of the following errors:

            0509-022 Cannot load module /opt/freeware/lib/libiconv.a(libiconv.so.2).

            0509-150   Dependent module libgcc_s.a(shr.o) could not be loaded.

            0509-022 Cannot load module libgcc_s.a(shr.o).

            0509-026 System error: A file or directory in the path name does not exist.

            0509-022 Cannot load module wget_64.

            0509-150   Dependent module /opt/freeware/lib/libiconv.a(libiconv.so.2) could not be loaded.

            0509-022 Cannot load module .

    Could you please suggest

    Kindest Regards
    Prajai.KN



    ------------------------------
    PRAJAI K N
    ------------------------------



  • 5.  RE: Not able to connect via Curl or wget when using https in URL, while able to connect via http.

    Posted Wed January 04, 2023 04:44 AM
    Hi Prajai,

    How you have installed the latest wget ?
    Did you install libgcc also along with wget

    ------------------------------
    SANGAMESH
    ------------------------------



  • 6.  RE: Not able to connect via Curl or wget when using https in URL, while able to connect via http.

    Posted Mon January 09, 2023 05:45 AM

    Hello SANGAMESH,

    We have downloaded the latest wget rpm package from this link, copied it to the server and install it.

    wget

    1.21.2

    https://www.ibm.com/support/pages/node/883796

    1. We used command mode to install wget rpm package

    rpm -ivh wget-1.21.2-1.aix6.1.ppc

    1. wget rpm package failed to install because it requested some dependencies
    1. We installed only libiconv rpm package also and again try to install the wget rpm 

                 package. The wget package installation is complete.

                 rpm -ivh wget-1.21.2-1.aix6.1.ppc

    1. After Installation, We checked the wget version and getting below 

    We didn't install libgcc rpm packages, We only install libiconv package.

     Kindest Regards
    Prajai.KN



    ------------------------------
    PRAJAI K N
    ------------------------------



  • 7.  RE: Not able to connect via Curl or wget when using https in URL, while able to connect via http.

    Posted Tue January 10, 2023 07:54 AM
    Edited by PRAJAI K N Tue January 10, 2023 08:43 AM
    Hi Team,

    Have uninstalled the wget and updated it to wget-1.21.2-1.ppc.

    At time of installation, it given message as
    #### rpm -ivh wget-1.21.2-1.aix6.1.ppc
    Verifying...                          ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:wget-1.21.2-1                    ################################# [100%]
    From wget-1.21.1 onwards, symbolic link of wget in /usr/bin is removed.
    The binary is shipped in /opt/freeware/bin. Please use absolute path or
    add /opt/freeware/bin in PATH environment variable to use the binary.
    ​++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    We have updated gettext-0.21-2.aix7.1.ppc.rpm, and zlib >= 1.2.5-4.

    Kindest REgards
    Prajai.KN

    ------------------------------
    PRAJAI K N
    ------------------------------



  • 8.  RE: Not able to connect via Curl or wget when using https in URL, while able to connect via http.

    Posted Tue January 10, 2023 08:40 AM
    HI Team,

    We have uninstalled and installed again but still getting the message while executing wget -V, Kindly suggest 

    $ wget -V
    exec(): 0509-036 Cannot load program wget because of the following errors:
            0509-022 Cannot load module /opt/freeware/lib/libiconv.a(libiconv.so.2).
            0509-150   Dependent module libgcc_s.a(shr.o) could not be loaded.
            0509-022 Cannot load module libgcc_s.a(shr.o).
            0509-026 System error: A file or directory in the path name does not exist.
            0509-022 Cannot load module wget_64.
            0509-150   Dependent module /opt/freeware/lib/libiconv.a(libiconv.so.2) could not be loaded.
            0509-022 Cannot load module .

    Kindest Regards
    Prajai.KN

    ------------------------------
    PRAJAI K N
    ------------------------------