Created
May 14, 2015 10:35
-
-
Save mgadzhi/74f3b6f8c35190266a8e to your computer and use it in GitHub Desktop.
pycurl example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from pycurl import Curl | |
def write(*args): | |
pass | |
if __name__ == '__main__': | |
c = Curl() | |
c.setopt(c.URL, 'http://google.com') | |
c.setopt(c.WRITEFUNCTION, write) | |
for i in xrange(300): | |
c.perform() | |
c.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment