import gobject
import gtk

from gi.repository import GLib
from gi.repository import Soup

uris = [ 'http://debian.org/', 'http://gnome.org/' ]

session = Soup.SessionAsync()

def quit():
    gtk.main_quit()
    return False

def finished_cb(session, message, *args):
    print message.get_uri().to_string(False)
    print message.status_code
    gobject.timeout_add(3000, quit)

for uri in uris:
    soup_uri = Soup.URI.new(uri)
    message = Soup.Message.new_from_uri('GET', soup_uri)
    session.queue_message(message, finished_cb, None)

gtk.main()
