Re: [us...@httpd] RewriteMap PRG By Example Using C

2009-04-29 Thread ricardo figueiredo
Hi, spc (Hope this helps) - > Great The external program's (in C) working ! Wonderfull !!! Thank you very much to Brian, Eric and Sean Ricardo On Wed, Apr 29, 2009 at 4:17 PM, Sean Conner wrote: > It was thus said that the Great Brian Mearns once stated: > > On Wed, Apr 29, 2009

Re: [us...@httpd] RewriteMap PRG By Example Using C

2009-04-29 Thread Sean Conner
It was thus said that the Great Brian Mearns once stated: > On Wed, Apr 29, 2009 at 1:58 PM, ricardo figueiredo > wrote: > > Sorry, > > > > Let me explain my situation again. > > I'm using directive RewriteMap using external rewriting program. > > This program is developed in language C. > > > Fir

Re: [us...@httpd] RewriteMap PRG By Example Using C

2009-04-29 Thread ricardo figueiredo
Hi, Good explanation !!! But, How do you improve this C program ? On Wed, Apr 29, 2009 at 3:09 PM, Brian Mearns wrote: > On Wed, Apr 29, 2009 at 1:58 PM, ricardo figueiredo > wrote: > > Sorry, > > > > Let me explain my situation again. > > I'm using directive RewriteMap using external rewriti

Re: [us...@httpd] RewriteMap PRG By Example Using C

2009-04-29 Thread Brian Mearns
On Wed, Apr 29, 2009 at 1:58 PM, ricardo figueiredo wrote: > Sorry, > > Let me explain my situation again. > I'm using directive RewriteMap using external rewriting program. > This program is developed in language C. > > When I require a page in the browser is shown an error (Bad Request 400). > >

Re: [us...@httpd] RewriteMap PRG By Example Using C

2009-04-29 Thread ricardo figueiredo
Sorry, Let me explain my situation again. I'm using directive RewriteMap using external rewriting program. This program is developed in language C. When I require a page in the browser is shown an error (Bad Request 400). My program in C to rewriting URL #include int main() { int id = 0;

Re: [us...@httpd] RewriteMap PRG By Example Using C

2009-04-29 Thread Brian Mearns
On Wed, Apr 29, 2009 at 1:25 PM, ricardo13 wrote: > > Please !!! > > Help me > > Somebody has some example of RewriteMap using external program in C !!! > There are some example in > http://www.wellho.net/resources/ex.php4?item=a603/andy PHP . > > Thank You > > Ricardo > > > ricardo13 wrote:

Re: [us...@httpd] RewriteMap PRG By Example Using C

2009-04-29 Thread ricardo13
Please !!! Help me Somebody has some example of RewriteMap using external program in C !!! There are some example in http://www.wellho.net/resources/ex.php4?item=a603/andy PHP . Thank You Ricardo ricardo13 wrote: > > Hi, > > I thought that if I typed "localhost/1" in browser, the pr

Re: [us...@httpd] RewriteMap PRG By Example Using C

2009-04-28 Thread ricardo13
Hi, I thought that if I typed "localhost/1" in browser, the program (file) in mod_rewrite (RewriteMap) mapped from /1 to /index.html But, Happen 400 Bad Request. Thank you Ricardo Eric Covener wrote: > > On Tue, Apr 28, 2009 at 2:17 PM, ricardo13 > wrote: >> >> Hi all, >> I'm doing example

Re: [us...@httpd] RewriteMap PRG By Example Using C

2009-04-28 Thread Eric Covener
On Tue, Apr 28, 2009 at 2:17 PM, ricardo13 wrote: > > Hi all, > I'm doing examples with mod_rewrite, I'm using directive RewriteMap > I did a simple program in C > > #include > int main() { >  int id = 0; >  fscanf(stdin, "%d", &id); >  switch(id) { >    case 1: fprintf(stdout, "/index.html"); >

[us...@httpd] RewriteMap PRG By Example Using C

2009-04-28 Thread ricardo13
Hi all, I'm doing examples with mod_rewrite, I'm using directive RewriteMap I did a simple program in C #include int main() { int id = 0; fscanf(stdin, "%d", &id); switch(id) { case 1: fprintf(stdout, "/index.html"); break; case 2: fprintf(stdout, "/new.html"); break;