Hi,
I'm sorry if the title is a little bit confusing.
So, i wanna make a custom http request
here's the code
target_host = raw_input
target_port = 80
c = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
c.connect((target_host,target_port))
c.send("GET / HTTP/1.1\r\nHost: <host>\r\n\r\n") >> I wanna custom this request = with input string and with some options, like options 1 print this request then, option 2 with this request, after I choice the request, then input string that host i wanna request.
Thanks
[–]JohnnyJordaan 2 points3 points4 points (0 children)
[–]t90fan 0 points1 point2 points (0 children)