Skip to content

QSHCURL Fails #41

@mattlavinder

Description

@mattlavinder

I get the following output when using QSHCURL

curl: (6) getaddrinfo() thread failed to start

Command ran was:

QSHCURL CMDLINE('https://api.ipify.org') DSPSTDOUT(*YES)

Running IBM i 7.4.
Output of curl --version is

curl 8.12.0 (powerpc-ibm-os400) libcurl/8.12.0 OpenSSL/3.0.16 zlib/1.3 brotli/1.0.9 libidn2/2.3.0 libssh2/1.11.1
Release-Date: 2025-02-05
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli HSTS HTTPS-proxy IDN IPv6 Largefile libz NTLM SSL threadsafe TLS-SRP UnixSockets

If I wrap cURL call in a script and run it this way, it works:

QSH CMD('/QOpenSys/usr/bin/sh -c "~/curl.sh > curl.out"')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions