Sending a JSON object over TCP with Java

前端 未结 1 1876
星月不相逢
星月不相逢 2021-01-06 13:58

I\'m trying to replace a Netcat command that I\'m running in my terminal that will reset some data on a server. The netcat command looks like this:

echo \'{\         


        
1条回答
  •  伪装坚强ぢ
    2021-01-06 14:20

    I think the server is expecting newline at the end of the message. Try to use your original code with write() and add \n at the end to confirm this.

    0 讨论(0)
提交回复
热议问题