Permalink
Browse files

fix pycurl

  • Loading branch information...
1 parent 3ee9494 commit 7b1f710143081081928d6c6ad3c1357dc04196d8 @yomguy yomguy committed May 2, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 deefuzzer/tools/streamer.py
@@ -67,8 +67,9 @@ def delay(self):
return self.delay
def open(self):
- self.uri = self.protocol + '://' + self.host + ':' + str(self.port) + self.mount + '?' + 'password=' + self.password
-
+ import pycurl
+ self.uri = self.protocol + '://' + self.host + ':' + str(self.port) + \
+ self.mount + '?' + 'password=' + self.password
self.curl.setopt(pycurl.URL, self.uri)
self.curl.setopt(pycurl.UPLOAD, 1)
self.curl.setopt(pycurl.READFUNCTION, self.read_callback)

0 comments on commit 7b1f710

Please sign in to comment.