On Mon, 25 Sep 2000, B. Burke wrote:

> 
> I'm using Apache/1.3.11 with mod_perl/1.22 on an AIX platform to serve
> as an application server, with persistent ties into a MySQL database.
> 
> My company is using an in-house socket API for data transfers.  The
> request messages in our API are somewhat similiar to an HTML GET
> request, in that we use tagged, delimited fields (pipe delimited
> instead of & delimited).
> 
> I have written a socket server gateway to act as a protocol converter,
> to convert our API's requests into HTML GET's (and also convert the
> HTML output into our API's response format).
> 
> My question is this.  Is it possible using mod_perl for me to
> incorporate the protocol conversion into Apache itself?  In other
> words, can I strip out the need for HTML headers, and rewrite the
> format of GET requests to comply with our proprietary API? I don't
> know if this is something that I can do through mod_perl, or if I will
> have to dig deeper into C and recompile a new server.
> 
> Any help or ideas will be mucho appreciated!

I don't think you'll actually have to re-write anything. Although an
example of a transaction would be most helpful. All you have to do is
setup mod_perl to handle the connection, Apache _should_ be able to handle
the request if it looks enough like a GET request, and you should be able
to respond to it with little enough information, provided your responses
are also similar to HTTP responses (HTTP response code followed optionally
by headers then the body).

-- 
<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