#! /usr/bin/env python
# vi:ts=4:et
# $Id: test_multi.py,v 1.5 2002/08/29 14:39:21 mfx Exp $

import pycurl

m = pycurl.CurlMulti()
c1 = pycurl.Curl()
c2 = pycurl.Curl()
c1.setopt(c1.URL, 'http://curl.haxx.se')
c2.setopt(c2.URL, 'http://python.org')
m.add_handle(c1)
m.add_handle(c2)
while 1:
    ret, num_handles = m.perform()
    if num_handles == 0:
        break
m.remove_handle(c2)
m.remove_handle(c1)
m.close()
c1.close()
c2.close()

@@ -58,33 +58,38 @@
 v 1.
-5
+6
  2002/
-08/29 14:39:21 mfx
+10/17 14:06:04 kjetilja
  Exp
@@ -239,19 +239,48 @@
 p://
-python.org'
+cnn.com')%0Ac2.setopt(c2.FOLLOWLOCATION, 1
 )%0Am.

add followlocation and a site which requires a redirect