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

📄 http_8h-source.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<a name="l00424"></a><a class="code" href="classPHTTP.html#p22">00424</a>     <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> <a class="code" href="classPHTTP.html#p22">ProxyConnectionTag</a>;<a name="l00425"></a><a class="code" href="classPHTTP.html#p23">00425</a>     <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> <a class="code" href="classPHTTP.html#p23">ProxyAuthorizationTag</a>;<a name="l00426"></a><a class="code" href="classPHTTP.html#p24">00426</a>     <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> <a class="code" href="classPHTTP.html#p24">ProxyAuthenticateTag</a>;<a name="l00427"></a><a class="code" href="classPHTTP.html#p25">00427</a>     <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> <a class="code" href="classPHTTP.html#p25">ForwardedTag</a>;<a name="l00428"></a><a class="code" href="classPHTTP.html#p26">00428</a>     <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> <a class="code" href="classPHTTP.html#p26">SetCookieTag</a>;<a name="l00429"></a><a class="code" href="classPHTTP.html#p27">00429</a>     <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> <a class="code" href="classPHTTP.html#p27">CookieTag</a>;00430 00431   <span class="keyword">protected</span>:00434     <a class="code" href="classPHTTP.html#b0">PHTTP</a>();00435 00447     <span class="keyword">virtual</span> PINDEX <a class="code" href="classPHTTP.html#b1">ParseResponse</a>(00448       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; line <span class="comment">// Input response line to be parsed</span>00449     );00450 };00451 00452 00454 <span class="comment">// PHTTPClient</span>00455 <a name="l00476"></a><a class="code" href="classPHTTPClient.html">00476</a> <span class="keyword">class </span><a class="code" href="classPHTTPClient.html">PHTTPClient</a> : <span class="keyword">public</span> <a class="code" href="classPHTTP.html">PHTTP</a>00477 {00478   <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(<a class="code" href="classPHTTPClient.html">PHTTPClient</a>, <a class="code" href="classPHTTP.html">PHTTP</a>)00479 00480   <span class="keyword">public</span>:00482     <a class="code" href="classPHTTPClient.html#a0">PHTTPClient</a>();00483     <a class="code" href="classPHTTPClient.html#a0">PHTTPClient</a>(00484       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; <a class="code" href="classPHTTPClient.html#n0">userAgentName</a>00485     );00486 00487 00488   <span class="comment">// New functions for class.</span>00496 <span class="comment"></span>    <span class="keywordtype">int</span> <a class="code" href="classPHTTPClient.html#a2">ExecuteCommand</a>(00497       <a class="code" href="classPHTTP.html#s42">Commands</a> cmd,00498       <span class="keyword">const</span> <a class="code" href="classPURL.html">PURL</a> &amp; url,00499       <a class="code" href="classPMIMEInfo.html">PMIMEInfo</a> &amp; outMIME,00500       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; dataBody,00501       <a class="code" href="classPMIMEInfo.html">PMIMEInfo</a> &amp; replyMime,00502       BOOL persist = TRUE00503     );00504     <span class="keywordtype">int</span> <a class="code" href="classPHTTPClient.html#a2">ExecuteCommand</a>(00505       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; cmdName,00506       <span class="keyword">const</span> <a class="code" href="classPURL.html">PURL</a> &amp; url,00507       <a class="code" href="classPMIMEInfo.html">PMIMEInfo</a> &amp; outMIME,00508       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; dataBody,00509       <a class="code" href="classPMIMEInfo.html">PMIMEInfo</a> &amp; replyMime,00510       BOOL persist = TRUE00511     );00512 00514     BOOL <a class="code" href="classPHTTPClient.html#a4">WriteCommand</a>(00515       <a class="code" href="classPHTTP.html#s42">Commands</a> cmd,00516       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; url,00517       <a class="code" href="classPMIMEInfo.html">PMIMEInfo</a> &amp; outMIME,00518       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; dataBody00519     );00520     BOOL <a class="code" href="classPHTTPClient.html#a4">WriteCommand</a>(00521       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; cmdName,00522       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; url,00523       <a class="code" href="classPMIMEInfo.html">PMIMEInfo</a> &amp; outMIME,00524       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; dataBody00525     );00526 00528     BOOL <a class="code" href="classPInternetProtocol.html#a18">ReadResponse</a>(00529       <a class="code" href="classPMIMEInfo.html">PMIMEInfo</a> &amp; replyMIME00530     );00531 00533     BOOL <a class="code" href="classPHTTPClient.html#a7">ReadContentBody</a>(00534       <a class="code" href="classPMIMEInfo.html">PMIMEInfo</a> &amp; replyMIME,00535       <a class="code" href="classPBYTEArray.html">PBYTEArray</a> &amp; body00536     );00537     BOOL <a class="code" href="classPHTTPClient.html#a7">ReadContentBody</a>(00538       <a class="code" href="classPMIMEInfo.html">PMIMEInfo</a> &amp; replyMIME,00539       <a class="code" href="classPString.html">PString</a> &amp; body00540     );00541 00542 00548     BOOL <a class="code" href="classPHTTPClient.html#a9">GetTextDocument</a>(00549       <span class="keyword">const</span> <a class="code" href="classPURL.html">PURL</a> &amp; url,         <span class="comment">// Universal Resource Locator for document.</span>00550       <a class="code" href="classPString.html">PString</a> &amp; document,       <span class="comment">// Body read</span>00551       BOOL persist = TRUE00552     );00553 00559     BOOL <a class="code" href="classPHTTPClient.html#a10">GetDocument</a>(00560       <span class="keyword">const</span> <a class="code" href="classPURL.html">PURL</a> &amp; url,         <span class="comment">// Universal Resource Locator for document.</span>00561       <a class="code" href="classPMIMEInfo.html">PMIMEInfo</a> &amp; outMIME,      <span class="comment">// MIME info in request</span>00562       <a class="code" href="classPMIMEInfo.html">PMIMEInfo</a> &amp; replyMIME,    <span class="comment">// MIME info in response</span>00563       BOOL persist = TRUE00564     );00565 00571     BOOL <a class="code" href="classPHTTPClient.html#a11">GetHeader</a>(00572       <span class="keyword">const</span> <a class="code" href="classPURL.html">PURL</a> &amp; url,         <span class="comment">// Universal Resource Locator for document.</span>00573       <a class="code" href="classPMIMEInfo.html">PMIMEInfo</a> &amp; outMIME,      <span class="comment">// MIME info in request</span>00574       <a class="code" href="classPMIMEInfo.html">PMIMEInfo</a> &amp; replyMIME,    <span class="comment">// MIME info in response</span>00575       BOOL persist = TRUE00576     );00577 00578 00584     BOOL <a class="code" href="classPHTTPClient.html#a12">PostData</a>(00585       <span class="keyword">const</span> <a class="code" href="classPURL.html">PURL</a> &amp; url,       <span class="comment">// Universal Resource Locator for document.</span>00586       <a class="code" href="classPMIMEInfo.html">PMIMEInfo</a> &amp; outMIME,    <span class="comment">// MIME info in request</span>00587       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; data,   <span class="comment">// Information posted to the HTTP server.</span>00588       <a class="code" href="classPMIMEInfo.html">PMIMEInfo</a> &amp; replyMIME,  <span class="comment">// MIME info in response</span>00589       BOOL persist = TRUE00590     );00591 00597     BOOL <a class="code" href="classPHTTPClient.html#a12">PostData</a>(00598       <span class="keyword">const</span> <a class="code" href="classPURL.html">PURL</a> &amp; url,       <span class="comment">// Universal Resource Locator for document.</span>00599       <a class="code" href="classPMIMEInfo.html">PMIMEInfo</a> &amp; outMIME,    <span class="comment">// MIME info in request</span>00600       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; data,   <span class="comment">// Information posted to the HTTP server.</span>00601       <a class="code" href="classPMIMEInfo.html">PMIMEInfo</a> &amp; replyMIME,  <span class="comment">// MIME info in response</span>00602       <a class="code" href="classPString.html">PString</a> &amp; replyBody,    <span class="comment">// Body of response</span>00603       BOOL persist = TRUE00604     );00605 00606   <span class="keyword">protected</span>:00607     BOOL <a class="code" href="classPHTTPClient.html#b0">AssureConnect</a>(<span class="keyword">const</span> <a class="code" href="classPURL.html">PURL</a> &amp; url, <a class="code" href="classPMIMEInfo.html">PMIMEInfo</a> &amp; outMIME);00608     BOOL <a class="code" href="classPHTTPClient.html#b1">InternalReadContentBody</a>(00609       <a class="code" href="classPMIMEInfo.html">PMIMEInfo</a> &amp; replyMIME,00610       <a class="code" href="classPAbstractArray.html">PAbstractArray</a> &amp; body00611     );00612 <a name="l00613"></a><a class="code" href="classPHTTPClient.html#n0">00613</a>     <a class="code" href="classPString.html">PString</a> <a class="code" href="classPHTTPClient.html#n0">userAgentName</a>;00614 };00615 00616 00618 <span class="comment">// PMultipartFormInfo</span>00619 <a name="l00624"></a><a class="code" href="classPMultipartFormInfo.html">00624</a> <span class="keyword">class </span><a class="code" href="classPMultipartFormInfo.html">PMultipartFormInfo</a> : <span class="keyword">public</span> <a class="code" href="classPObject.html">PObject</a>00625 {00626   <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(<a class="code" href="classPMultipartFormInfo.html">PMultipartFormInfo</a>, <a class="code" href="classPObject.html">PObject</a>);00627   <span class="keyword">public</span>:

⌨️ 快捷键说明

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