curl-library
Re: How to integrate libcurl in an application module (Apache2 here) ?
Date: Sat, 27 Feb 2010 23:44:10 +0100
It works now, but it isn't non-blocking! Apache requests are as slow as
the socket is... Is there a possibility to have a real non-blocking
mode?
Le samedi 27 février 2010 à 23:21 +0100, Samuel ROZE a écrit :
> Okay, what I just have to do is to load the libcurl.so extension with
> the LoadFile directive.
>
> Sorry for the noise.
> Samuel.
>
> Le samedi 27 février 2010 à 23:07 +0100, Samuel ROZE a écrit :
> > Hello,
> >
> > I'm writing an Apache2 extension and in it I want to use some libcurl
> > fonctions, to send non-blocking request (using multi it appears to be a
> > non-blocking solution, so my extension will not slow down my requests
> > even if the socket takes many seconds?)
> >
> > My extension headers are:
> > #include "httpd.h" [Apache]
> > #include "http_config.h" [Apache]
> > #include "curl/curl.h" [libcurl]
> >
> >
> > Everything is compiling (I use -I/etc/libcurl for gcc because I've
> > installed libcurl at /etc/libcurl) right, I've my .la file, great!
> >
> > The problem is when I load the extension in Apache, I've this error:
> >
> > Cannot load /etc/apache-2.2.14/modules/modulename.so into
> > server: /etc/apache-2.2.14/modules/modulename.so: undefined symbol:
> > curl_easy_setopt
> >
> > It is like if libcurl wasn't included in my extension. That's probably
> > the fact but how can I integrate libcurl in my extension? Or it may be
> > possible to integrate libcurl fonction directly in Apache and then uses
> > it in modules?
> >
> > If anybody can show me the light, I would be happy! :)
> >
> > Regards,
> > Samuel.
> >
>
>
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-27