Apache fails to start when Xerces library is used in a C++ module

2013-03-31 Thread Sindhi Sindhi
Hello, I have written a C++ module to invoke the Xerces C++ XML library to parse a XML file. I'm unable to start httpd.exe with these changes. Here are the details - a) Apache server version: httpd-2.4.4-win64 b) Xerces version: xerces-c-3.1.1-x86_64-windows-vc-10.0 c) Development envt: Visual St

Re: Apache fails to start when Xerces library is used in a C++ module

2013-03-31 Thread Sindhi Sindhi
rin Manolache wrote: > On 2013-03-31 11:06, Sindhi Sindhi wrote: > >> Hello, >> >> I have written a C++ module to invoke the Xerces C++ XML library to parse >> a >> XML file. I'm unable to start httpd.exe with these changes. Here are the >> details -

Re: Apache fails to start when Xerces library is used in a C++ module

2013-03-31 Thread Sindhi Sindhi
Thankyou very much, after providing the Xerces DLL location in LoadFile I'm able to parse the XML :-) Thanks once again! On Sun, Mar 31, 2013 at 5:25 PM, Rainer Jung wrote: > On 31.03.2013 13:09, Sindhi Sindhi wrote: > > Hello Sorin, > > > > Thanks for your reply. >

Apache C++ equivalent of javax.servlet.Filter

2013-05-01 Thread Sindhi Sindhi
Hi, I'm developing a C++ module for Apache(httpd.exe) server. This C++ module intends to function the same as a Java module that we earlier developed for Tomcat. I'll be very thankful to you if you could answer the following queries I have about finding the Apache(httpd.exe server) C++ equivalents

Apache Buckets and Brigade

2013-05-01 Thread Sindhi Sindhi
Hello, Thanks a lot for providing answers to my earlier emails with subject "Apache C++ equivalent of javax.servlet.Filter". I really appreciate your help. I had another question. My requirement is something like this - I have a huge html file that I have copied into the Apache htdocs folder. In

Re: Apache Buckets and Brigade

2013-05-01 Thread Sindhi Sindhi
le atomic token independent of the structure > of the incoming bucket brigade. > > Let me know if you'd like to discuss this further. > > -Josh > > > On Wed, May 1, 2013 at 8:54 AM, Sindhi Sindhi > wrote: > > > Hello, > > > > Thanks a lot for

Re: Apache Buckets and Brigade

2013-05-01 Thread Sindhi Sindhi
tric way, breaking up blocks on html tokens. A block of > > free-format > > > text would be treated as a single atomic token independent of the > > structure > > > of the incoming bucket brigade. > > > > > > Let me know if you'd like to discuss this fu

Re: Apache C++ equivalent of javax.servlet.Filter

2013-05-03 Thread Sindhi Sindhi
object how can I get the query string/URL ? Thanks again. On Wed, May 1, 2013 at 5:53 PM, Sorin Manolache wrote: > On 2013-05-01 12:21, Sindhi Sindhi wrote: > >> Hi, >> >> I'm developing a C++ module for Apache(httpd.exe) server. This C++ module >> intends

Re: Apache C++ equivalent of javax.servlet.Filter

2013-05-03 Thread Sindhi Sindhi
I'm so sorry, I searched, and found that request_rec has the below members - char *args; char *unparsed_uri; apr_uri_t parsed_uri; Which of the below members will have the exact URI that is passed from the browser? On Fri, May 3, 2013 at 1:19 PM, Sindhi Sindhi wrote: > Thankyou so

Re: Apache C++ equivalent of javax.servlet.Filter

2013-05-03 Thread Sindhi Sindhi
Ok, thankyou :) On Fri, May 3, 2013 at 10:45 PM, Joe Lewis wrote: > > On 05/03/2013 01:53 AM, Sindhi Sindhi wrote: > >> I'm so sorry, I searched, and found that request_rec has the below >> members - >> char *args; >> char *unparsed_uri; >> apr_uri_t

Setting cookies and user agent using Apache C API

2013-05-03 Thread Sindhi Sindhi
Hi, I get "ap_filter_t* filterChain" as an input parameter to my Apache C++ module. I can see that I can get the cookies and user agent from the below calls. request_rec *currRequest = filterChain->r; const char* userAgent = apr_table_get(currRequest->headers_in, "User-Agent"); const char *cookie

Setting and accessing module specific directory

2013-05-08 Thread Sindhi Sindhi
Hi, I have written a C++ Apache module that performs filtering of HTML content. There are some XML files which are read by this filter when it does the filtering. During run-time when this filter is invoked, I'd want the filter pick up these XML files and read them. I was thinking these XML files

Re: Setting and accessing module specific directory

2013-05-10 Thread Sindhi Sindhi
ver? On Wed, May 8, 2013 at 11:04 PM, Sorin Manolache wrote: > On 2013-05-08 17:02, Sindhi Sindhi wrote: > >> Hi, >> >> I have written a C++ Apache module that performs filtering of HTML >> content. >> >> There are some XML files which are read by this fi

C++ Apache module fails to load

2013-05-10 Thread Sindhi Sindhi
Hello, I have created a C++ Apache module that performs text filtering operations. I used Visual Studio 2010 to build/compile the source code to generate the DLL. I have Apache httpd-2.4.4-win64 installed from http://www.apachelounge.com/download/win64/. I have a Windows 7 64-bit OS. Loading and e

Re: Setting and accessing module specific directory

2013-05-11 Thread Sindhi Sindhi
PM, Sorin Manolache wrote: > On 2013-05-11 08:22, Sindhi Sindhi wrote: > >> Thankyou. >> Had one more question. What is the right way of handling this - in which >> location in Apache server directory should I be keeping my filter specific >> files? >> >>

Apache module memory allocations

2013-05-17 Thread Sindhi Sindhi
Hi, I have written a C++ Apache module, and I have three questions related to it, kindly advice. 1. How do I increase the memory for httpd.exe? As in, I have a C++ module that does a lot of initializations, reading huge XML files and storing this huge data in memory till the server is running. So

Apache pool management

2013-05-24 Thread Sindhi Sindhi
Hi, I did an initial study to find out more information about Apache APR pools. Some links say pools are not thread safe, some say they are really useful, so I'm a bit confused. Kindly advice. In certain links like the below, I read that pools are not thread safe. Does this mean that when multipl

Re: Apache pool management

2013-05-25 Thread Sindhi Sindhi
ules and Apache internals. Thanks a ton! On Sat, May 25, 2013 at 2:53 AM, Sorin Manolache wrote: > On 2013-05-24 20:00, Sindhi Sindhi wrote: > >> Hi, >> >> I did an initial study to find out more information about Apache APR >> pools. >> Some links say pools ar

Re: Apache pool management

2013-05-25 Thread Sindhi Sindhi
Thankyou very much! On Sat, May 25, 2013 at 2:21 PM, Sorin Manolache wrote: > On 2013-05-25 10:05, Sindhi Sindhi wrote: > >> You have answered all my questions and thanks a lot. Had two questions >> more, appreciate your response. >> >> 1. >> As of now, my

Apache: Create server config only once

2013-05-25 Thread Sindhi Sindhi
Hi, I see that the create_server_config callback is called twice for every Apache server startup. I want to do a lot of initialization in this callback and allocations in this function are meant to be long lived. And these buffers are very huge, so I want to ensure these initializations are done o

Re: Apache: Create server config only once

2013-05-25 Thread Sindhi Sindhi
address that was set by the previous call. Any help is highly appreciated. On Sat, May 25, 2013 at 6:52 PM, Sindhi Sindhi wrote: > Hi, > > I see that the create_server_config callback is called twice for every > Apache server startup. I want to do a lot of initialization in this &g

Re: Apache: Create server config only once

2013-05-25 Thread Sindhi Sindhi
Sorin! Thankyou so much, really appreciate your responses they are giving me a very good insight. On Sun, May 26, 2013 at 12:59 AM, Sorin Manolache wrote: > On 2013-05-25 15:22, Sindhi Sindhi wrote: > >> Hi, >> >> I see that the create_server_config callback is called t

Module exceptions can be handled before it crashes httpd?

2013-05-27 Thread Sindhi Sindhi
Hello, Is there a way to handle the exceptions (access violation, heap corruption etc) thrown by an output filter module within the module itself so that it does not propagate till the httpd.exe server resulting in a server crash? The C++ output filter module that I have written makes use of nati

Re: Module exceptions can be handled before it crashes httpd?

2013-05-28 Thread Sindhi Sindhi
Thankyou. On Mon, May 27, 2013 at 2:38 PM, Sorin Manolache wrote: > On 2013-05-27 10:30, Sindhi Sindhi wrote: > >> Hello, >> >> Is there a way to handle the exceptions (access violation, heap corruption >> etc) thrown by an output filter module within the module

Issue in using php5_module module.

2013-05-28 Thread Sindhi Sindhi
Hello, I'm trying to setup PHP module with 64-bit Apache 2.4.4, and also load a C++ module to do the HTML filtering. As I understand the php module acts like an interpreter and translates the php into HTML and then invokes the HTML output filter. Heres my setup - 1. I downloaded Apache from http:

Re: Issue in using php5_module module.

2013-06-06 Thread Sindhi Sindhi
Thankyou Joe, I'll definitely check the the filter code. On Tue, May 28, 2013 at 8:26 PM, Joe Lewis wrote: > On 05/28/2013 08:38 AM, Sindhi Sindhi wrote: > >> [SNIP] >> >> >> With these changes, when I start httpd.exe and try to launch a simple php >>

URL decoding in Apache module

2013-06-14 Thread Sindhi Sindhi
Hi, I have a C++ filter module written for Apache. I see that all URL's sent to Apache server are encoded. Does Apache already do the URL decoding and store it somewhere in the request_rec structure OR the filter module should explicitly do a URL decoding? If the filter should do the URL decodin

Browser cookie and Apache server calls

2013-06-26 Thread Sindhi Sindhi
Hi, I have a C++ Apache filter module for HTML output filtering. I'm seeing a certain behavior when using my filter module after setting cookies and would want to know if thats expected. I have a html page index.html, this page has a hyperlink called "Click here" and when I click on this link, a

Re: Browser cookie and Apache server calls

2013-06-26 Thread Sindhi Sindhi
I'm using Chrome Version 24.0.1312.14 On Thu, Jun 27, 2013 at 1:52 AM, Sindhi Sindhi wrote: > Hi, > > I have a C++ Apache filter module for HTML output filtering. I'm seeing a > certain behavior when using my filter module after setting cookies and > would want to know

Re: Browser cookie and Apache server calls

2013-06-26 Thread Sindhi Sindhi
3-06-26 22:22, Sindhi Sindhi wrote: > >> Hi, >> >> I have a C++ Apache filter module for HTML output filtering. I'm seeing a >> certain behavior when using my filter module after setting cookies and >> would want to know if thats expected. >> >>

Re: Browser cookie and Apache server calls

2013-06-27 Thread Sindhi Sindhi
Thanks a lot Sorin, with the information you provided I should be able to get it working. Thanks again! On Thu, Jun 27, 2013 at 1:16 PM, Sorin Manolache wrote: > On 2013-06-27 06:28, Sindhi Sindhi wrote: > >> If I clear the browser cache before I click on the hyperlink, I dont see &

Apache module development on Mac OS X

2014-06-17 Thread Sindhi Sindhi
Hi, I have a C++ Apache (v2.2.26) module that I created for Windows 7. I am now supporting this Apache module for Mac OS X Mavericks, and I'm quite new to Mac. This Mac version comes with a pre-installed Apache 2.2.26. In the Apache module code, I have references to the "apr_" calls (like apr_bri

Re: Apache module development on Mac OS X

2014-06-17 Thread Sindhi Sindhi
che server installed. Regards, Sindhi On Tue, Jun 17, 2014 at 6:01 PM, Nick Kew wrote: > On Tue, 17 Jun 2014 17:27:15 +0530 > Sindhi Sindhi wrote: > > > Any help will be highly appreciated. > > You're trying to build the module as a program. > You need to build it