Is it possible to proxy one request with a cgi/servlet ?

This is a discussion on Is it possible to proxy one request with a cgi/servlet ? within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi all, I'm using a PL-SQL extension for Apache (mod_pl sql) This extension allows to generate HTML from ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-20-2007
Laura
 
Posts: n/a
Default Is it possible to proxy one request with a cgi/servlet ?

Hi all,
I'm using a PL-SQL extension for Apache (mod_pl sql)
This extension allows to generate HTML from Oracle Stored Procedures.

The core section of the configuration is this:

<Location /plsql>
SetHandler pls_handler
Order deny,allow
Allow from all
AllowOverride None

PlsqlDatabaseUsername scott
PlsqlDatabasePassword tiger
PlsqlDatabaseConnectString ORACLE_HP
PlsqlAuthenticationMode Basic
</Location>

Here all requests that begin with /plsql are elaborated with
mod_pl_sql.

for example:
http://localhost/plsql/MyProcedure

calls MyProcedure and prints html code in it.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
What I need now is to proxy every request to plsql with another call
like this:

http://localhost/plsql/init?userName=user

Because I need to carry the session information between calls.

In other words I need to say to Apache that when anything like

http://localhost/plsql

is issued, this should be issued before:

http://localhost/plsql/init?userName=user.

I hope it's possible to do it somehow...........
Thanks a lot
Laura

  #2 (permalink)  
Old 06-21-2007
Laura
 
Posts: n/a
Default Re: Is it possible to proxy one request with a cgi/servlet ?

On 20 Giu, 16:49, Laura <f.marchi...@pride.it> wrote:
> Hi all,
> I'm using a PL-SQL extension for Apache (mod_pl sql)
> This extension allows to generate HTML from Oracle Stored Procedures.
>
> The core section of the configuration is this:
>
> <Location /plsql>
> SetHandler pls_handler
> Order deny,allow
> Allow from all
> AllowOverride None
>
> PlsqlDatabaseUsername scott
> PlsqlDatabasePassword tiger
> PlsqlDatabaseConnectString ORACLE_HP
> PlsqlAuthenticationMode Basic
> </Location>
>
> Here all requests that begin with /plsql are elaborated with
> mod_pl_sql.
>
> for example:http://localhost/plsql/MyProcedure
>
> calls MyProcedure and prints html code in it.
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - -
> What I need now is to proxy every request to plsql with another call
> like this:
>
> http://localhost/plsql/init?userName=user
>
> Because I need to carry the session information between calls.
>
> In other words I need to say to Apache that when anything like
>
> http://localhost/plsql
>
> is issued, this should be issued before:
>
> http://localhost/plsql/init?userName=user.
>
> I hope it's possible to do it somehow...........
> Thanks a lot
> Laura


Sigh.....no way ?
Is there a chance with mod_rewrite ?
What I exactly need is to "filter" a request with another
request........

For example in Java it's possible to filter a Servlet request with a
Servlet filter. Unfortunately I cannot use the same pattern here
because the Java Web Server kicks in only for .jsp pages and not for
html pages. (Apache is in front of Tomcat web server)

So I need to find a similar solution with Apache.......
please help!

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:54 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0