HTTP
所属分类:Web服务器
开发工具:Visual C++
文件大小:105KB
下载次数:640
上传日期:2008-05-31 12:21:29
上 传 者:
long2icc
说明: VC MFC网络编程的HTTP实现,包括HttpServer和HttpClient
(VC MFC realize HTTP network programming, including HttpServer and HttpClient)
文件列表:
HttpClinet\HttpClinet.clw (1209, 2003-12-09)
HttpClinet\HttpClinet.cpp (2119, 2003-11-10)
HttpClinet\HttpClinet.dsp (4231, 2003-11-10)
HttpClinet\HttpClinet.dsw (545, 2003-11-10)
HttpClinet\HttpClinet.h (1368, 2003-11-10)
HttpClinet\HttpClinet.rc (5482, 2003-11-10)
HttpClinet\HttpClinetDlg.cpp (4968, 2003-12-09)
HttpClinet\HttpClinetDlg.h (1416, 2003-11-10)
HttpClinet\resource.h (826, 2003-11-10)
HttpClinet\StdAfx.cpp (212, 2003-11-10)
HttpClinet\StdAfx.h (1054, 2003-11-10)
HttpClinet\res\HttpClinet.ico (1078, 2003-11-10)
HttpClinet\res\HttpClinet.rc2 (402, 2003-11-10)
HTTPSVR\ Log 20031110.hsl (239, 2003-11-10)
HTTPSVR\GENPAGE.CPP (2501, 2003-10-17)
HTTPSVR\GENPAGE.H (1083, 2001-07-17)
HTTPSVR\HTTP.CPP (2102, 2001-07-17)
HTTPSVR\HTTP.H (1047, 2001-07-17)
HTTPSVR\Httpdoc.cpp (8080, 2003-11-10)
HTTPSVR\HTTPDOC.H (2182, 2003-11-10)
HTTPSVR\HTTPSVR.BLD (15672, 2001-07-17)
HTTPSVR\HTTPSVR.CLW (4363, 2003-11-11)
HTTPSVR\Httpsvr.cpp (5959, 2001-07-17)
HTTPSVR\httpsvr.dsp (6004, 2003-11-10)
HTTPSVR\HTTPSVR.DSW (537, 2001-07-17)
HTTPSVR\httpsvr.exe (213052, 2001-07-17)
HTTPSVR\HTTPSVR.H (1576, 2001-07-17)
HTTPSVR\HTTPSVR.MAK (11601, 2001-07-17)
HTTPSVR\HttpSvr.rc (19402, 2003-11-10)
HTTPSVR\HTTPSVR.REG (2612, 2001-07-17)
HTTPSVR\HTTPVIEW.CPP (15518, 2001-07-17)
HTTPSVR\HTTPVIEW.H (3032, 2001-07-17)
HTTPSVR\HyperLinker.cpp (3899, 2003-11-10)
HTTPSVR\HyperLinker.h (2092, 2003-08-27)
HTTPSVR\LISTEN.CPP (1063, 2001-07-17)
HTTPSVR\LISTEN.H (737, 2001-07-17)
HTTPSVR\MAINFRM.CPP (3575, 2001-07-17)
HTTPSVR\MAINFRM.H (1569, 2001-07-17)
HTTPSVR\MAKEFILE (629, 2001-07-17)
... ...
HTTPSvr:
=============================
这是微软提供的HTTP服务器例程,使用时需要再建一个
C:\webpages\目录。把该目录下的webpages拷到C:即可。
下面是原来的readme
HttpSvr Installation and Tips
=============================
HttpSvr is an MFC sample web server application. It operates as a
single-document interface application, configured with an HttpSvr
Configuration file (.HSC). You create HSC files by selecting "Save"
from the "Server" menu. The application registers the HSC files with
the system so that double-clicking on an HSC file will start HttpSvr.
Multiple instances of HttpSvr can be running at any time, but only
one can be listening on any particular port (80 being the default).
Setup Instructions
==================
Step 1: Build the HttpSvr.exe project.
Step 2: Create a root HTTP directory named "WebPages" in the root
folder of the same drive as the executable (see below).
Step 3: Copy the folder "SvrAdmin" and all it's contents into the
root HTTP folder.
Step 4: Run the copy of HttpSvr.exe on your hard drive.
Your are now ready to serve up your web pages. Keep in mind that if
you make any changes to the default configuration, you'll have to
save those settings into an HttpSvr Configuration file (.HSC) via the
"Save" item on the "Server" menu, and launch future HttpSvr sessions
from the resulting .HSC file in order to re-use those settings.
Root HTTP Folder
================
By default, the server will attempt to serve-up files from the folder
"WebPages" on the same drive as the executable. When you first run
HttpSvr, if that folder does not exist, it will ask you if you want
to create it. You do not have to use that folder; you can specify
another. Just remember that a different root folder is a change in
configuration and should be saved as a new HttpSvr Configuration file
(.HSC).
It is highly recommended that you copy the SvrAdmin subfolder from the
source directory to this folder so that the directory listing icons
can be used by your server when a default document file is not
available. For example, I put my root at C:\WebPages, and the tree
looks something like:
C:\
WebPages\
SvrAdmin\
RonLo\
Cmd95\
HttpSvr\
Everything in and under "WebPages" will be available for viewing over
the web (as long as the hidden attribute is not set).
***Don't forget to copy "SvrAdmin"!!***
Tips
====
Unless you want people to be able to browse all the files in a
directory FTP-like, include an HTML file named "default.html" that
will get loaded automatically. HttpSvr is smart enough to look for
default files with names like default.html, default.htm, index.html
and index.htm.
If you do want people to be able to browse (like if you have a
directory of files that can be downloaded), files with the "hidden"
attribute set will not be available for download but will still be
listed. If the SvrAdmin folder was not installed as a subfolder of
your main root HTTP directory, directory listings will be quite ugly
due to the server not finding the icons that should be there.
The most important directory to have a default.html file is the root
HTTP folder. This is the one people type in when they're not sure of
any specific page names. For example, my server's name is "RonLo."
When someone types a URL of "http://RonLo" or just "RonLo", the
default.html file in the root HTTP file gets loaded, and it tells
them what all is on my server.
If none of the default HTML files are present, it will look for a CGI
app named (you gessed it) default.exe. If it finds one, it will run
it as a GET operation without any parameters.
近期下载者:
相关文件:
收藏者: