On Wed, Apr 21, 1999, John Rousseau wrote:

> I'm running Apache 1.3.6 (on both WIN32 and RedHat 5.2) with mod_ssl
> 2.2.8. What I want to do is make a client HTTP request to another
> server (for OCSP). I've currently written my own socket I/O routines
> and part of a response parser, but it seems like I'm reinventing the
> wheel.
> 
> Can anyone give me some pointers on ways (if possible) to use the
> Apache server API to create a new HTTP request, send it off and
> parse the result. I was looking at proxy_handler in mod_proxy.c and
> ap_proxy_connect_handler in proxy_connect.c to see if I could
> leverage the work there. It appears that the main issue is creating
> a reasonable request_rec struct.
> 
> I want to make these calls from inside mod_ssl, so I don't want to
> involve LWP or any other packages if I can avoid it.

Yes, you should be able to use this. You can do a trick to avoid the
request_rec-fiddling: Create an internal sub-request as other modules do it.
But instead of a standard URL you use a fully-qualified URL or even the
proxy:http://...  variants. I think this should do the trick. OTOH there are
lots of HTTP libraries out there which you can use.  For instance GNOME has a
libhttp. You just have to incorporate these work.

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)  www.engelschall.com/sw/mod_ssl/
Official Support Mailing List               [EMAIL PROTECTED]
Automated List Manager                       [EMAIL PROTECTED]

Reply via email to