I'm trying to exchange HTTP messages between a client and a server. The request contains HTTP/1.0, when I place this in the beginning of the request, it works fine.
client_socket.send("HTTP/1.0 400 Bad Request")
But When I place it at the end, it doesn't received on the other side and the program halts.
client_socket.send("GET 1.txt HTTP/1.0")
When I add an extra space to the request between HTTP and /1.0
client_socket.send("GET 1.txt HTTP/ 1.0")
It works fine and I receive the contents of the requested file.
I thinks the problem is with the forward slash, I want to omit it in order to make my client connect to another given server written in another language.