rs / curlie

The power of curl, the ease of use of httpie.
https://curlie.io
MIT License
2.86k stars 97 forks source link

Invalid category provided #33

Closed misery closed 4 years ago

misery commented 4 years ago

First... great idea to "merge" httpie and curl.

I tried curlie with ArchLinux and curl 7.73.0. If I type just "curlie" I do not get a correct "help".

$ curlie
Usage: curlie [options...] [METHOD] URL [REQUEST_ITEM [REQUEST_ITEM ...]]
Invalid category provided, here is a list of all categories:

 auth        Different types of authentication methods
 connection  Low level networking operations
 curl        The command line tool itself
 dns         General DNS options
 file        FILE protocol options
 ftp         FTP protocol options
 http        HTTP and HTTPS protocol options
 imap        IMAP protocol options
 misc        Options that don't fit into any other category
 output      The output of curl
 pop3        POP3 protocol options
 post        HTTP Post specific options
 proxy       All options related to proxies
 scp         SCP protocol options
 sftp        SFTP protocol options
 smtp        SMTP protocol options
 ssh         SSH protocol options
 telnet      TELNET protocol options
 tftp        TFTP protocol options
 tls         All TLS/SSL related options
 upload      All options for uploads
 verbose     Options related to any kind of command line output of curl

If I try this on my AlpineLinux with curl 7.71.1 it seems to work:

$ curlie
Usage: curlie [options...] [METHOD] URL [REQUEST_ITEM [REQUEST_ITEM ...]]
     --abstract-unix-socket <path> Connect via abstract Unix domain socket
     --alt-svc <file name> Enable alt-svc with this cache file
     --anyauth       Pick any authentication method
 -a, --append        Append to target file when uploading
     --basic         Use HTTP Basic Authentication
     --cacert <file> CA certificate to verify peer against
     --capath <dir>  CA directory to verify peer against
 -E, --cert <certificate[:password]> Client certificate file
...

Looks like curlie do not like newest curl. ;-)

btw: I added an AlpineLinux package https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/14110