IXWebSocket
IXWebSocket copied to clipboard
IXHttpClient "Cannot retrieve status line" error with http status code 0
On localhost:7000 I am running an IXHttpServer and I am trying to connect using an IXHttpClient instance but I keep getting Cannot retrieve status line errors and blank message data, I've tried with both TLS enabled and disabled and it's the same thing :(
Sadness. Definitely try to getting this to work without TLS first.
- Which version and platform are you using ?
- Are you running the client and the server on the same machine ?
Try to use the ws client:
In one terminal:
$ ws httpd -D
[2022-10-21 13:10:02.485] [info] Listening on 127.0.0.1:8008
127.0.0.1:57877 HEAD ixwebsocket/11.4.0 macos nossl zlib 1.2.11 /
== Headers ==
Accept: */*
Content-Encoding:
Host: localhost
User-Agent: ixwebsocket/11.4.0 macos nossl zlib 1.2.11
== Body ==
In another one
$ ws curl -I http://localhost:8008
[2022-10-21 13:10:18.069] [info]
[2022-10-21 13:10:18.069] [info] Content-Length: 2
[2022-10-21 13:10:18.069] [info] Server: ixwebsocket/11.4.0 macos nossl zlib 1.2.11
[2022-10-21 13:10:18.069] [info] Upload size: 105
[2022-10-21 13:10:18.069] [info] Download size: 0
[2022-10-21 13:10:18.069] [info] Status: 200