IXWebSocket icon indicating copy to clipboard operation
IXWebSocket copied to clipboard

IXHttpClient "Cannot retrieve status line" error with http status code 0

Open hashem78 opened this issue 3 years ago • 1 comments

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 :(

hashem78 avatar Oct 19 '22 15:10 hashem78

Sadness. Definitely try to getting this to work without TLS first.

  1. Which version and platform are you using ?
  2. 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

bsergean avatar Oct 21 '22 20:10 bsergean