Re: Doing a subrequest with ap_run_sub_req

2010-05-06 Thread Some Guy
I wanted to do something similar, but the Apache 2 APIs require a request_rec* in the lookup_uri method. Tracing the code in request.c, it uses the passed in request_rec* in make_sub_request. The example Joe provided won't compile, and the request_rec can't be NULL otherwise the code will segfaul

Re: Doing a subrequest with ap_run_sub_req

2010-05-06 Thread Joe Lewis
On May 6, 2010, at 8:40 AM, Some Guy wrote: > I wanted to do something similar, but the Apache 2 APIs require a > request_rec* in the lookup_uri method. Tracing the code in request.c, it > uses the passed in request_rec* in make_sub_request. > > The example Joe provided won't compile, and the re

Re: Doing a subrequest with ap_run_sub_req

2010-05-06 Thread Some Guy
What we want to do is create the subrequest (or maybe just a request) without any previous request_rec* object. At least that is what I figured markus meant when he said "build a request completely free". From the APIs, this does not seem possible, and using libCurl may be the better solution. O

Re: Doing a subrequest with ap_run_sub_req

2010-05-06 Thread Joe Lewis
On May 6, 2010, at 4:22 PM, Some Guy wrote: > What we want to do is create the subrequest (or maybe just a request) > without any previous request_rec* object. At least that is what I figured > markus meant when he said "build a request completely free". From the APIs, > this does not seem possi