⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 http_8h-source.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>http.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>http.h</h1><a href="http_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * http.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * HyperText Transport Protocol classes.</span>00005 <span class="comment"> *</span>00006 <span class="comment"> * Portable Windows Library</span>00007 <span class="comment"> *</span>00008 <span class="comment"> * Copyright (c) 1993-2002 Equivalence Pty. Ltd.</span>00009 <span class="comment"> *</span>00010 <span class="comment"> * The contents of this file are subject to the Mozilla Public License</span>00011 <span class="comment"> * Version 1.0 (the "License"); you may not use this file except in</span>00012 <span class="comment"> * compliance with the License. You may obtain a copy of the License at</span>00013 <span class="comment"> * http://www.mozilla.org/MPL/</span>00014 <span class="comment"> *</span>00015 <span class="comment"> * Software distributed under the License is distributed on an "AS IS"</span>00016 <span class="comment"> * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See</span>00017 <span class="comment"> * the License for the specific language governing rights and limitations</span>00018 <span class="comment"> * under the License.</span>00019 <span class="comment"> *</span>00020 <span class="comment"> * The Original Code is Portable Windows Library.</span>00021 <span class="comment"> *</span>00022 <span class="comment"> * The Initial Developer of the Original Code is Equivalence Pty. Ltd.</span>00023 <span class="comment"> *</span>00024 <span class="comment"> * Contributor(s): ______________________________________.</span>00025 <span class="comment"> *</span>00026 <span class="comment"> * $Log: http.h,v $</span>00027 <span class="comment"> * Revision 1.57  2002/12/03 22:37:36  robertj</span>00028 <span class="comment"> * Removed get document that just returns a content length as the chunked</span>00029 <span class="comment"> *   transfer encoding makes this very dangerous.</span>00030 <span class="comment"> * Added GetTextDocument() to get a URL content into a PString.</span>00031 <span class="comment"> * Added a version pf PostData() that gets the reponse content into a PString.</span>00032 <span class="comment"> * Added ReadContentBody() that takes a PString, not just PBYTEArray.</span>00033 <span class="comment"> *</span>00034 <span class="comment"> * Revision 1.56  2002/11/06 22:47:23  robertj</span>00035 <span class="comment"> * Fixed header comment (copyright etc)</span>00036 <span class="comment"> *</span>00037 <span class="comment"> * Revision 1.55  2002/10/10 04:43:43  robertj</span>00038 <span class="comment"> * VxWorks port, thanks Martijn Roest</span>00039 <span class="comment"> *</span>00040 <span class="comment"> * Revision 1.54  2002/10/02 08:54:34  craigs</span>00041 <span class="comment"> * Added support for XMLRPC server</span>00042 <span class="comment"> *</span>00043 <span class="comment"> * Revision 1.53  2002/09/16 01:08:59  robertj</span>00044 <span class="comment"> * Added #define so can select if #pragma interface/implementation is used on</span>00045 <span class="comment"> *   platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.</span>00046 <span class="comment"> *</span>00047 <span class="comment"> * Revision 1.52  2002/05/08 05:38:53  robertj</span>00048 <span class="comment"> * Added PHTTPTailFile resource to do a unix 'tail -f' of a file.</span>00049 <span class="comment"> *</span>00050 <span class="comment"> * Revision 1.51  2001/10/31 01:34:47  robertj</span>00051 <span class="comment"> * Added extra const for constant HTTP tag name strings.</span>00052 <span class="comment"> * Changes to support HTTP v1.1 chunked transfer encoding.</span>00053 <span class="comment"> *</span>00054 <span class="comment"> * Revision 1.50  2001/10/03 00:26:34  robertj</span>00055 <span class="comment"> * Upgraded client to HTTP/1.1 and for chunked mode entity bodies.</span>00056 <span class="comment"> *</span>00057 <span class="comment"> * Revision 1.49  2001/09/28 08:55:15  robertj</span>00058 <span class="comment"> * More changes to support restartable PHTTPClient</span>00059 <span class="comment"> *</span>00060 <span class="comment"> * Revision 1.48  2001/09/28 00:42:54  robertj</span>00061 <span class="comment"> * Added automatic setting of some outward MIME fields.</span>00062 <span class="comment"> * Added "user agent" string field for automatic inclusion.</span>00063 <span class="comment"> * Added function to read the contents of the HTTP request.</span>00064 <span class="comment"> *</span>00065 <span class="comment"> * Revision 1.47  2001/08/28 06:44:30  craigs</span>00066 <span class="comment"> * Added ability to override PHTTPServer creation</span>00067 <span class="comment"> *</span>00068 <span class="comment"> * Revision 1.46  2001/03/14 01:49:54  craigs</span>00069 <span class="comment"> * Added ability to handle multi-part form POST commands</span>00070 <span class="comment"> *</span>00071 <span class="comment"> * Revision 1.45  2001/02/22 05:26:47  robertj</span>00072 <span class="comment"> * Added "nicer" version of GetDocument in HTTP client class.</span>00073 <span class="comment"> *</span>00074 <span class="comment"> * Revision 1.44  2001/01/15 06:16:53  robertj</span>00075 <span class="comment"> * Set HTTP resource members to private to assure are not modified by</span>00076 <span class="comment"> *   dscendents in non-threadsafe manner.</span>00077 <span class="comment"> *</span>00078 <span class="comment"> * Revision 1.43  2000/09/04 03:57:58  robertj</span>00079 <span class="comment"> * Added ability to change the persistent connection parameters (timeout etc).</span>00080 <span class="comment"> *</span>00081 <span class="comment"> * Revision 1.42  2000/05/02 08:28:10  craigs</span>00082 <span class="comment"> * Removed "memory leaks" caused by brain-dead GNU linker</span>00083 <span class="comment"> *</span>00084 <span class="comment"> * Revision 1.41  1999/09/17 01:11:14  robertj</span>00085 <span class="comment"> * Fixed some documentation typos.</span>00086 <span class="comment"> *</span>00087 <span class="comment"> * Revision 1.40  1999/05/13 04:04:04  robertj</span>00088 <span class="comment"> * Fixed problem of initialised commandName in ConnectionInfo.</span>00089 <span class="comment"> *</span>00090 <span class="comment"> * Revision 1.39  1999/05/04 15:26:01  robertj</span>00091 <span class="comment"> * Improved HTTP/1.1 compatibility (pass through user commands).</span>00092 <span class="comment"> * Fixed problems with quicktime installer.</span>00093 <span class="comment"> *</span>00094 <span class="comment"> * Revision 1.38  1999/04/21 01:58:08  robertj</span>00095 <span class="comment"> * Fixed problem with reading data for request using second form of PHTTPRequestInfo constructor.</span>00096 <span class="comment"> *</span>00097 <span class="comment"> * Revision 1.37  1999/03/09 08:01:46  robertj</span>00098 <span class="comment"> * Changed comments for doc++ support (more to come).</span>00099 <span class="comment"> *</span>00100 <span class="comment"> * Revision 1.36  1999/02/16 08:07:10  robertj</span>00101 <span class="comment"> * MSVC 6.0 compatibility changes.</span>00102 <span class="comment"> *</span>00103 <span class="comment"> * Revision 1.35  1998/11/30 02:50:47  robertj</span>00104 <span class="comment"> * New directory structure</span>00105 <span class="comment"> *</span>00106 <span class="comment"> * Revision 1.34  1998/10/31 12:49:21  robertj</span>00107 <span class="comment"> * Added read/write mutex to the HTTP space variable to avoid thread crashes.</span>00108 <span class="comment"> *</span>00109 <span class="comment"> * Revision 1.33  1998/10/25 01:00:46  craigs</span>00110 <span class="comment"> * Added ability to specify per-directory authorisation for PHTTPDirectory</span>00111 <span class="comment"> *</span>00112 <span class="comment"> * Revision 1.32  1998/09/23 06:19:29  robertj</span>00113 <span class="comment"> * Added open source copyright license.</span>00114 <span class="comment"> *</span>00115 <span class="comment"> * Revision 1.31  1998/07/24 06:58:42  robertj</span>00116 <span class="comment"> * Changed PostData function so just has string for data instead of dictionary.</span>00117 <span class="comment"> *</span>00118 <span class="comment"> * Revision 1.30  1998/06/16 03:33:33  robertj</span>00119 <span class="comment"> * Changed TCP connection shutdown to be parameterised.</span>00120 <span class="comment"> * Propagated persistence and proxy flags in new connection info instances.</span>00121 <span class="comment"> *</span>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -