Re: Anyone have some example code doing simple HTTP GET request from within a module?

2012-06-22 Thread Ben Noordhuis
On Sat, Jun 23, 2012 at 4:47 AM, wrote: > Per earlier threads on this list, I've been working on an Apache module.  For > the time being, I'm kind of stuck because of the problems that I've run into > with trying to integrate my module with a 3rd party library, so just for my > module, which i

Anyone have some example code doing simple HTTP GET request from within a module?

2012-06-22 Thread ohaya
Hi, Per earlier threads on this list, I've been working on an Apache module. For the time being, I'm kind of stuck because of the problems that I've run into with trying to integrate my module with a 3rd party library, so just for my module, which is mainly a proof-of-concept, I'd like to have

Re: Followup to earlier thread about "How to compiling/link/use Apache module that uses shared library?"

2012-06-22 Thread ohaya
Sorin Manolache wrote: > On 2012-06-22 21:22, oh...@cox.net wrote: > > > > Does that confirm that they statically linked stuff from openssl (and > > libcrypto) into libobaccess.so? > > I think so. > > Also you can run nm -aC liboaccess.so. The symbols marked with "U" are > undefined =>

Re: Followup to earlier thread about "How to compiling/link/use Apache module that uses shared library?"

2012-06-22 Thread Sorin Manolache
On 2012-06-22 21:22, oh...@cox.net wrote: Does that confirm that they statically linked stuff from openssl (and libcrypto) into libobaccess.so? I think so. Also you can run nm -aC liboaccess.so. The symbols marked with "U" are undefined => they are external to the lib. The functions marked

Re: Followup to earlier thread about "How to compiling/link/use Apache module that uses shared library?"

2012-06-22 Thread ohaya
oh...@cox.net wrote: > > oh...@cox.net wrote: > > > > Sorin Manolache wrote: > > > On 2012-06-22 17:35, oh...@cox.net wrote: > > > > > > > > > > > Sorry. I meant to say: > > > > > > > > "So, my code calls ObConfig_initialize() then it appears that that calls > > > > ObConfig

Re: Followup to earlier thread about "How to compiling/link/use Apache module that uses shared library?"

2012-06-22 Thread ohaya
oh...@cox.net wrote: > > Sorin Manolache wrote: > > On 2012-06-22 17:35, oh...@cox.net wrote: > > > > > > > > Sorry. I meant to say: > > > > > > "So, my code calls ObConfig_initialize() then it appears that that calls > > > ObConfig::initialize() which is presumably a C++ function.

Re: Followup to earlier thread about "How to compiling/link/use Apache module that uses shared library?"

2012-06-22 Thread ohaya
Sorin Manolache wrote: > On 2012-06-22 17:35, oh...@cox.net wrote: > > > > > Sorry. I meant to say: > > > > "So, my code calls ObConfig_initialize() then it appears that that calls > > ObConfig::initialize() which is presumably a C++ function. " > > > > We develop our apache modules in C

Re: Followup to earlier thread about "How to compiling/link/use Apache module that uses shared library?"

2012-06-22 Thread Sorin Manolache
On 2012-06-22 17:35, oh...@cox.net wrote: Sorry. I meant to say: "So, my code calls ObConfig_initialize() then it appears that that calls ObConfig::initialize() which is presumably a C++ function. " We develop our apache modules in C++ on a regular basis and they interact with other modul

Re: Deleting only bucket in brigade

2012-06-22 Thread Joe Lewis
On 06/22/2012 12:17 PM, Jodi Bosa wrote: excellent - that worked! ... tmpBucket = APR_BUCKET_NEXT(b); newBucket = apr_bucket_immortal_create("", (apr_size_t )0, bucketAlloc); APR_BUCKET_INSERT_BEFORE(tmpBucket, newBucket); apr_bucket_delete(b); ... But I'm surpris

Re: Deleting only bucket in brigade

2012-06-22 Thread Jodi Bosa
excellent - that worked! ... tmpBucket = APR_BUCKET_NEXT(b); newBucket = apr_bucket_immortal_create("", (apr_size_t )0, bucketAlloc); APR_BUCKET_INSERT_BEFORE(tmpBucket, newBucket); apr_bucket_delete(b); ... But I'm surprised I haven't seen this in other modules - am I th

Re: Followup to earlier thread about "How to compiling/link/use Apache module that uses shared library?"

2012-06-22 Thread ohaya
Joe Lewis wrote: > On 6/22/12 9:35 AM, oh...@cox.net wrote: > > oh...@cox.net wrote: > >> Hi, > >> > >> Now that I've gotten by earlier problems with the module I'm working on > >> (see thread "Re: UNSOLVED was Re: SOLVED was Re: How to compiling/link/use > >> Apache module that uses

Re: Deleting only bucket in brigade

2012-06-22 Thread Joe Lewis
On 6/22/12 9:52 AM, Jodi Bosa wrote: What do you do in an input filter when you need to remove the only bucket in the bucket brigade? The following results in the filter not being called with any of the subsequent bucket brigades: apr_bucket_delete(b); The following hangs: b->lengt

Re: Followup to earlier thread about "How to compiling/link/use Apache module that uses shared library?"

2012-06-22 Thread Joe Lewis
On 6/22/12 9:35 AM, oh...@cox.net wrote: oh...@cox.net wrote: Hi, Now that I've gotten by earlier problems with the module I'm working on (see thread "Re: UNSOLVED was Re: SOLVED was Re: How to compiling/link/use Apache module that uses shared library?"), I am trying to get my module to

Deleting only bucket in brigade

2012-06-22 Thread Jodi Bosa
What do you do in an input filter when you need to remove the only bucket in the bucket brigade? The following results in the filter not being called with any of the subsequent bucket brigades: apr_bucket_delete(b); The following hangs: b->length = 0; In other words, my input filter

Re: Followup to earlier thread about "How to compiling/link/use Apache module that uses shared library?"

2012-06-22 Thread ohaya
oh...@cox.net wrote: > Hi, > > Now that I've gotten by earlier problems with the module I'm working on (see > thread "Re: UNSOLVED was Re: SOLVED was Re: How to compiling/link/use Apache > module that uses shared library?"), I am trying to get my module to work with > the stuff in that l

Followup to earlier thread about "How to compiling/link/use Apache module that uses shared library?"

2012-06-22 Thread ohaya
Hi, Now that I've gotten by earlier problems with the module I'm working on (see thread "Re: UNSOLVED was Re: SOLVED was Re: How to compiling/link/use Apache module that uses shared library?"), I am trying to get my module to work with the stuff in that libobaccess.so. This .so is part of Orac

Re: UNSOLVED was Re: SOLVED was Re: How to compiling/link/use Apache module that uses shared library?

2012-06-22 Thread ohaya
Rainer Jung wrote: > On 22.06.2012 14:16, oh...@cox.net wrote: > > > > oh...@cox.net wrote: > >> > >> Rainer Jung wrote: > >>> On 22.06.2012 06:10, Joe Lewis wrote: > On 6/21/12 10:02 PM, oh...@cox.net wrote: > > Joe Lewis wrote: > >> On 6/21/12 9:39 PM, oh...@

Re: UNSOLVED was Re: SOLVED was Re: How to compiling/link/use Apache module that uses shared library?

2012-06-22 Thread Rainer Jung
On 22.06.2012 14:16, oh...@cox.net wrote: oh...@cox.net wrote: Rainer Jung wrote: On 22.06.2012 06:10, Joe Lewis wrote: On 6/21/12 10:02 PM, oh...@cox.net wrote: Joe Lewis wrote: On 6/21/12 9:39 PM, oh...@cox.net wrote: oh...@cox.net wrote: oh...@cox.net wrote:

Re: UNSOLVED was Re: SOLVED was Re: How to compiling/link/use Apache module that uses shared library?

2012-06-22 Thread ohaya
Joe Lewis wrote: > On 6/22/12 6:16 AM, oh...@cox.net wrote: > > oh...@cox.net wrote: > >> Rainer Jung wrote: > >>> On 22.06.2012 06:10, Joe Lewis wrote: > On 6/21/12 10:02 PM, oh...@cox.net wrote: > > Joe Lewis wrote: > >> On 6/21/12 9:39 PM, oh...@cox.net wro

Re: UNSOLVED was Re: SOLVED was Re: How to compiling/link/use Apache module that uses shared library?

2012-06-22 Thread Joe Lewis
On 6/22/12 6:16 AM, oh...@cox.net wrote: oh...@cox.net wrote: Rainer Jung wrote: On 22.06.2012 06:10, Joe Lewis wrote: On 6/21/12 10:02 PM, oh...@cox.net wrote: Joe Lewis wrote: On 6/21/12 9:39 PM, oh...@cox.net wrote: oh...@cox.net wrote: oh...@cox.net wrote:

Re: UNSOLVED was Re: SOLVED was Re: How to compiling/link/use Apache module that uses shared library?

2012-06-22 Thread ohaya
oh...@cox.net wrote: > > Rainer Jung wrote: > > On 22.06.2012 06:10, Joe Lewis wrote: > > > On 6/21/12 10:02 PM, oh...@cox.net wrote: > > >> Joe Lewis wrote: > > >>> On 6/21/12 9:39 PM, oh...@cox.net wrote: > > oh...@cox.net wrote: > > > oh...@cox.net wrote:

Re: UNSOLVED was Re: SOLVED was Re: How to compiling/link/use Apache module that uses shared library?

2012-06-22 Thread ohaya
Rainer Jung wrote: > On 22.06.2012 06:10, Joe Lewis wrote: > > On 6/21/12 10:02 PM, oh...@cox.net wrote: > >> Joe Lewis wrote: > >>> On 6/21/12 9:39 PM, oh...@cox.net wrote: > oh...@cox.net wrote: > > oh...@cox.net wrote: > >> Joe Lewis wrote: > >>> O