Die Suche ergab 1 Treffer

von moprei
Mittwoch 20. Januar 2016, 12:57
Forum: Netzwerkprogrammierung
Thema: FlaskTelnetGeo
Antworten: 3
Zugriffe: 1915

FlaskTelnetGeo

from telnetlib import Telnet
import time

def httpRequest(host, path='/', port=80): #default wird wurzel '/' angesprochen
starttime = time.time()
connection = Telnet(host, port)
connection.write('GET '+path+' HTTP/1.1\r\n')
connection.write('Host: '+host+'\r\n')
connection.write('Connection ...