Quickies

[categories] [index] [all (527)] [latest]

Python
  1. import socket
    
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect(("www.seriot.ch", 80))
    
    s.send("GET /index.php HTTP/1.1\nHost: seriot.ch\n\n")
    response = s.recv(1024)
    print response