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 \'{\
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.
write()
\n