On Thu, 13 Jul 2000, Differentiated Software Solutions Pvt. Ltd wrote:

> Hi,
> 
> We have a mod_perl program which based on certain parameters returns the gif which 
>is to be displayed. We use 
> print "Location: http://192.168.1.2/smg/images/logo.gif'". 
> This means the browser makes 2 HTTP requests
> 1. To the CGI program to request for the location of the GIF
> 2. To the Web server requesting the GIF itself.
> 
> We want to combine both into a single HTTP - request response sequence
> i.e., is it possible to read and return the gif file from within a CGI
> program itself. If so, how ??

Apache->request->internal_redirect(<url>);

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org

Reply via email to