OSError: [Errno 22] EINVAL
Posted: Wed Dec 08, 2021 7:29 pm
I am trying to carry 3 variables by the GET method on a pbc. and it gives me this error. Can you help me? I'm going crazy
OSError: [Errno 22] EINVAL
host = "domain.com/test/test.php"
url = "domain.com/test/test.php?a=" + str(vara) + "&b=" + str(varb) + "&c=" + str(varc)
port = 80
print(url)
s = socket.socket()
s.connect((host, port))
message = "GET /200 HTTP/1.1\r\nHost: {}\r\nConnection: close\r\n\r\n"
s.write(message.format(url))
print(s.read(256))
s.close()
OSError: [Errno 22] EINVAL
host = "domain.com/test/test.php"
url = "domain.com/test/test.php?a=" + str(vara) + "&b=" + str(varb) + "&c=" + str(varc)
port = 80
print(url)
s = socket.socket()
s.connect((host, port))
message = "GET /200 HTTP/1.1\r\nHost: {}\r\nConnection: close\r\n\r\n"
s.write(message.format(url))
print(s.read(256))
s.close()