Skip to content

JSONRPC request failing with HTTP/0.9 not allowed #67

Open

Description

@mmoya

Hello, I'm trying to issue a jsonrpc request and curl complains about the http version.

With httpie:

$ http localhost:8901 method=foobar params:='[""]'

http: error: ConnectionError: ('Connection aborted.', BadStatusLine('Content-Length: 75\r\n')) while doing a POST request to URL: http://localhost:8901/

With curlie:

$ curlie localhost:8901 method=foobar params:='[""]'
curl: (1) Received HTTP/0.9 when not allowed

Version:

$ curlie --version
curl 7.88.1 (x86_64-pc-linux-gnu) libcurl/7.88.1 OpenSSL/3.0.8 zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.4) libssh2/1.10.0 nghttp2/1.52.0
Release-Date: [unreleased]
Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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