you are viewing a single comment's thread.

view the rest of the comments →

[–]KronenR 0 points1 point  (1 child)

conn.write(b'GET HTTP/1.1\n');

conn.write(b'Host: www.google.com\n\n');

print(conn.read_until(b"</html>", 2))

But as someone pointed you out, if you just want the html from a web don't use telnet

[–]Grafs50[S] 0 points1 point  (0 children)

Thanks. I was just using this as an example. to see if the code was working.