I'm having some issues with this python client. I'd appreciate it if someone could tell me what's wrong.
import socket, sys, time, os
host = '155.94.243.10'
port = 80
mySocket = socket.socket()
mySocket.connect((host,port))
message = input('>>>')
while message != 'q':
mySocket.send(message.encode())
data = mySocket.recv(1024).decode()
print('Received from server: ' + str(data))
message = input('>>>')
mySocket.close()
I'm using "GET / HTTP/1.1" as the input.
I get no response from the server, I should be getting an error message (I think)
Edit: I used wireshark to confirm I am connecting to the server.
Thanks in advance.
"GET / HTTP/1.1\n\n". Now serwer is waiting for new line.