如何编写服务器端应用程序以处理作为Web服务器的apache的http请求 [英] how to write server side applications to handle http requests with apache being the webserver

查看:74
本文介绍了如何编写服务器端应用程序以处理作为Web服务器的apache的http请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我曾在Windows上的ISAPI dll上注册过IIS.现在的要求是在Linux中的Apache上运行ISAPI模块.我查看了以下链接,该链接介绍了有关在Windows上向Apache注册ISAPI模块的信息.

http://httpd.apache.org/docs/1.3/mod/mod_isapi.html



Hi,
I have worked on ISAPI dll’S registered to IIS on windows. The requirement now is to run ISAPI module on Apache in Linux. I looked at the following link which tells about registering ISAPI modules with Apache on Windows.

http://httpd.apache.org/docs/1.3/mod/mod_isapi.html



Are there any libraries which allow you to write server-side applications that handle the HTTP requests with Apache being the webserver on Linux?

推荐答案

我对现有库一无所知,是否有任何库可让您编写用于处理HTTP请求的服务器端应用程序,而Apache是​​Linux上的Web服务器? .

几件事:

客户端不依赖于服务器计算机类型或操作系统

服务器不取决于客户端计算机类型或其他任何内容.

您不必担心要处理哪种类型的Web服务器.您将不得不担心如何处理http协议.

只是为了测试,请执行此操作.

例如,在端口80上打开telnet(可能会根据保护号而变化)

I dont know anything about existing library.

few things:

client do not depends on server machine type or os

server do not depends on clients machine type or anything else.

you wont have to worry about what kind of webserver you are dealing with. you will have to worry about how will you handle http protocol.

just for a test, do this.

open telnet on port 80(it may vary based on prot number) as example

>telnet www.google.com 80
GET / HTTP/1.0


放在一行之后的两个新行.

那么您将收到来自http服务器的回复.您的telnet甚至不知道它是哪种服务器


exactly two new line after putting the line.

then you will get reply from http server. your telnet even dont know what kind of server it is


这篇关于如何编写服务器端应用程序以处理作为Web服务器的apache的http请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆