WebSphere HTTP Server - Apache to Tomcat request passing problem on iSeries

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere HTTP Server > July 2004 > Apache to Tomcat request passing problem on iSeries





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache to Tomcat request passing problem on iSeries
oleg@investec.co.il

2004-07-13, 6:03 pm

Platform: iSeries
OS/400 version: V5R2M0
Server type: Apache

Hello!

I have written some module for Apache that implements a "quick
handler" to modify in some cases some of request parameters (query
string and/or request headers), or to send back to the client a
responce immediately.

The problem is: if the requested URL is a servlet (so, request have to
be served by Tomcat) then Apache takes the original query string (and
not the changed one) to pass it to Tomcat.

I have found that Apache takes the original query string by calling
the function " ap_get_original_query_string(request_rec
*r)", but I
have not found any function like
" ap_set_original_query_string(request_rec
*r)" and I have not found
any field inside "request_rec" that can contain original query string.

So, how I can pass the changed query string to Tomcat?

I will be grateful for any help.

By the way, may be somebody from IBM'ers who wrote the additions to
Apache code for AS400 can answer - why it was necessarily to save the
original query string? Only to ommit double translation (ASCII-EBCDIC
and then EBCDIC-ASCII)?

Regards,
Oleg Shor
oleg@investec.co.il
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com