cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problem using pycurl.WRITEFUNCTION

From: preetic <preetic_at_mahiti.org>
Date: Thu, 29 Aug 2002 16:50:42 +0530

hi all,

In the application that i am developing once curl.perform() is executed,i
want data be passed directly to me instead of it being passed to stdout.
For that i am using curl.setopt(pycurl.WRITEFUNCTION,write_data).
the write_data function is as follows:_

def write_data(buffer):
 a=string.find(buffer,"Website has temporarily moved")
 return a

I basically want to search the entire HTML for any error messages returned
from the server.
Am getting a pycurl error:-pycurl.Error7, 'connect() failed'

I dunno how to solve this problem...
Can anybody hepl me with this?

Cheers
Preeti

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-08-29