+<h3 id="HttpResponse_setETag">bool HttpResponse::setETag(string etag)</h3>
+<p>Set a custom ETag. Use this only if you know what you're doing.</p>
+<h3 id="HttpResponse_getETag">string HttpResponse::getETag()</h3>
+<p>Get the previously set custom ETag.</p>
+<h3 id="HttpResponse_setThrottleDelay">void HttpResponse::setThrottleDelay(double seconds)</h3>
+<p></p>
+<h3 id="HttpResponse_getThrottleDelay">double HttpResponse::getThrottleDelay()</h3>
+<p></p>
+<h3 id="HttpResponse_setSendBuffersize">void HttpResponse::setSendBuffersize(long bytes)</h3>
+<p></p>
+<h3 id="HttpResponse_getSendBuffersize">long HttpResponse::getSendBuffersize()</h3>
+<p></p>
+<h3 id="HttpResponse_setData">bool HttpResponse::setData(string data)</h3>
+<p>Set the data to be sent.</p>
+<h3 id="HttpResponse_getData">string HttpResponse::getData()</h3>
+<p>Get the previously set data to be sent.</p>
+<h3 id="HttpResponse_setStream">bool HttpResponse::setStream(resource stream)</h3>
+<p>Set the resource to be sent.</p>
+<h3 id="HttpResponse_getStream">resource HttpResponse::getStream()</h3>
+<p>Get the previously set resource to be sent.</p>
+<h3 id="HttpResponse_setFile">bool HttpResponse::setFile(string file)</h3>
+<p>Set the file to be sent.</p>
+<h3 id="HttpResponse_getFile">string HttpResponse::getFile()</h3>
+<p>Get the previously set file to be sent.</p>
+<h3 id="HttpResponse_send">bool HttpResponse::send()</h3>
+<p>Finally send the entity.<br />
+<br />
+Example:</p><pre><blockquote><code><font color="#000000"><br />
+<font color="#0000BB"><?php<br />$r </font><font color="#007700">= new </font><font color="#0000BB">HttpResponse</font><font color="#007700">(</font><font color="#0000BB">true</font><font color="#007700">);<br /></font><font color="#0000BB">$r</font><font color="#007700">-></font><font color="#0000BB">setFile</font><font color="#007700">(</font><font color="#DD0000">'../hidden/contract.pdf'</font><font color="#007700">);<br /></font><font color="#0000BB">$r</font><font color="#007700">-></font><font color="#0000BB">setContentType</font><font color="#007700">(</font><font color="#DD0000">'application/pdf'</font><font color="#007700">);<br /></font><font color="#0000BB">$r</font><font color="#007700">-></font><font color="#0000BB">send</font><font color="#007700">();<br /></font><font color="#0000BB">?></font><br />
+</font><br />
+</code></blockquote><br />
+<br />
+</pre></p>
+<h3 id="HttpMessage_fromString">static HttpMessage HttpMessage::fromString(string raw_message)</h3>
+<p>Create an HttpMessage object from a string.</p>
+<h2 id="HttpMessage" class="o">HttpMessage</h2>
+<h3 id="HttpMessage___construct">void HttpMessage::__construct([string message])</h3>
+<p>Instantiate a new HttpMessage object.</p>
+<h3 id="HttpMessage_getBody">string HttpMessage::getBody()</h3>
+<p>Get the body of the parsed Message.</p>
+<h3 id="HttpMessage_getHeaders">array HttpMessage::getHeaders()</h3>
+<p>Get Message Headers.</p>
+<h3 id="HttpMessage_setHeaders">void HttpMessage::setHeaders(array headers)</h3>
+<p>Sets new headers.</p>
+<h3 id="HttpMessage_addHeaders">void HttpMessage::addHeaders(array headers[, bool append = false])</h3>
+<p>Add headers. If append is true, headers with the same name will be separated, else overwritten.</p>
+<h3 id="HttpMessage_getType">long HttpMessage::getType()</h3>
+<p>Get Message Type. (HTTP_MSG_NONE|HTTP_MSG_REQUEST|HTTP_MSG_RESPONSE)</p>
+<h3 id="HttpMessage_setType">void HttpMessage::setType(long type)</h3>
+<p>Set Message Type. (HTTP_MSG_NONE|HTTP_MSG_REQUEST|HTTP_MSG_RESPONSE)</p>
+<h3 id="HttpMessage_getResponseCode">long HttpMessage::getResponseCode()</h3>
+<p>Get the Response Code of the Message.</p>
+<h3 id="HttpMessage_setResponseCode">bool HttpMessage::setResponseCode(long code)</h3>
+<p>Set the response code of an HTTP Response Message.<br />
+Returns false if the Message is not of type HTTP_MSG_RESPONSE,<br />
+or if the response code is out of range (100-510).</p>
+<h3 id="HttpMessage_getRequestMethod">string HttpMessage::getRequestMethod()</h3>
+<p>Get the Request Method of the Message.<br />
+Returns false if the Message is not of type HTTP_MSG_REQUEST.</p>
+<h3 id="HttpMessage_setRequestMethod">bool HttpMessage::setRequestMethod(string method)</h3>
+<p>Set the Request Method of the HTTP Message.<br />
+Returns false if the Message is not of type HTTP_MSG_REQUEST.</p>
+<h3 id="HttpMessage_getRequestUri">string HttpMessage::getRequestUri()</h3>
+<p>Get the Request URI of the Message.</p>
+<h3 id="HttpMessage_setRequestUri">bool HttpMessage::setRequestUri(string URI)</h3>
+<p>Set the Request URI of the HTTP Message.<br />
+Returns false if the Message is not of type HTTP_MSG_REQUEST,<br />
+or if paramtere URI was empty.</p>
+<h3 id="HttpMessage_getHttpVersion">string HttpMessage::getHttpVersion()</h3>
+<p>Get the HTTP Protocol Version of the Message.</p>
+<h3 id="HttpMessage_setHttpVersion">bool HttpMessage::setHttpVersion(string version)</h3>
+<p>Set the HTTP Protocol version of the Message.<br />
+Returns false if version is invalid (1.0 and 1.1).</p>
+<h3 id="HttpMessage_getParentMessage">HttpMessage HttpMessage::getParentMessage()</h3>
+<p>Get parent Message.</p>
+<h3 id="HttpMessage_send">bool HttpMessage::send()</h3>
+<p>Send the Message according to its type as Response or Request.</p>
+<h3 id="HttpMessage_toString">string HttpMessage::toString([bool include_parent = true])</h3>
+<p>Get the string representation of the Message.</p>
+<h2 id="HttpRequest" class="o">HttpRequest</h2>
+<h3 id="HttpRequest___construct">void HttpRequest::__construct([string url[, long request_method = HTTP_GET]])</h3>
+<p>Instantiate a new HttpRequest object which can be used to issue HEAD, GET<br />
+and POST (including posting files) HTTP requests.</p>
+<h3 id="HttpRequest___destruct">void HttpRequest::__destruct()</h3>
+<p>Destroys the HttpRequest object.</p>
+<h3 id="HttpRequest_setOptions">bool HttpRequest::setOptions(array options)</h3>
+<p>Set the request options to use. See http_get() for a full list of available options.</p>
+<h3 id="HttpRequest_getOptions">array HttpRequest::getOptions()</h3>
+<p>Get current set options.</p>
+<h3 id="HttpRequest_unsetOptions">void HttpRequest::unsetOptions()</h3>
+<p>Unset all options/headers/cookies.</p>
+<h3 id="HttpRequest_setSslOptions">bool HttpRequest::setSslOptions(array options)</h3>
+<p>Set additional SSL options.</p>
+<h3 id="HttpRequest_getSslOptions">array HttpRequest::getSslOtpions()</h3>
+<p>Get previously set SSL options.</p>
+<h3 id="HttpRequest_unsetSslOptions">void HttpRequest::unsetSslOptions()</h3>
+<p>Unset previously set SSL options.</p>
+<h3 id="HttpRequest_addHeaders">bool HttpRequest::addHeaders(array headers)</h3>
+<p>Add request header name/value pairs.</p>
+<h3 id="HttpRequest_getHeaders">array HttpRequest::getHeaders()</h3>
+<p>Get previously set request headers.</p>
+<h3 id="HttpRequest_unsetHeaders">void HttpRequest::unsetHeaders()</h3>
+<p>Unset previously set request headers.</p>
+<h3 id="HttpRequest_addCookies">bool HttpRequest::addCookies(array cookies)</h3>
+<p>Add cookies.</p>
+<h3 id="HttpRequest_getCookies">array HttpRequest::getCookies()</h3>
+<p>Get previously set cookies.</p>
+<h3 id="HttpRequest_unsetCookies">void HttpRequest::unsetCookies()</h3>
+<p></p>
+<h3 id="HttpRequest_setURL">bool HttpRequest::setURL(string url)</h3>
+<p>Set the request URL.</p>
+<h3 id="HttpRequest_getURL">string HttpRequest::getUrl()</h3>
+<p>Get the previously set request URL.</p>
+<h3 id="HttpRequest_setMethod">bool HttpRequest::setMethod(long request_method)</h3>
+<p>Set the request methods; one of the <tt>HTTP_HEAD</tt>, <tt>HTTP_GET</tt> or<br />
+<tt>HTTP_POST</tt> constants.</p>
+<h3 id="HttpRequest_getMethod">long HttpRequest::getMethod()</h3>
+<p>Get the previously set request method.</p>
+<h3 id="HttpRequest_setContentType">bool HttpRequest::setContentType(string content_type)</h3>
+<p>Set the content type the post request should have.<br />
+Use this only if you know what you're doing.</p>
+<h3 id="HttpRequest_getContentType">string HttpRequest::getContentType()</h3>
+<p>Get the previously content type.</p>
+<h3 id="HttpRequest_setQueryData">bool HttpRequest::setQueryData(mixed query_data)</h3>
+<p>Set the URL query parameters to use.<br />
+Overwrites previously set query parameters.<br />
+Affects any request types.</p>
+<h3 id="HttpRequest_getQueryData">string HttpRequest::getQueryData()</h3>
+<p>Get the current query data in form of an urlencoded query string.</p>
+<h3 id="HttpRequest_addQueryData">bool HttpRequest::addQueryData(array query_params)</h3>
+<p>Add parameters to the query parameter list.<br />
+Affects any request type.</p>
+<h3 id="HttpRequest_unsetQueryData">void HttpRequest::unsetQueryData()</h3>
+<p>Clean the query parameters.<br />
+Affects any request type.</p>
+<h3 id="HttpRequest_addPostFields">bool HttpRequest::addPostFields(array post_data)</h3>
+<p>Adds POST data entries.<br />
+Affects only POST requests.</p>
+<h3 id="HttpRequest_setPostFields">bool HttpRequest::setPostFields(array post_data)</h3>
+<p>Set the POST data entries.<br />
+Overwrites previously set POST data.<br />
+Affects only POST requests.</p>
+<h3 id="HttpRequest_getPostFields">array HttpRequest::getPostFields()</h3>
+<p>Get previously set POST data.</p>
+<h3 id="HttpRequest_unsetPostFields">void HttpRequest::unsetPostFields()</h3>
+<p>Clean POST data entires.<br />
+Affects only POST requests.</p>
+<h3 id="HttpRequest_addPostFile">bool HttpRequest::addPostFile(string name, string file[, string content_type = "application/x-octetstream"])</h3>
+<p>Add a file to the POST request.<br />
+Affects only POST requests.</p>
+<h3 id="HttpRequest_getPostFiles">array HttpRequest::getPostFiles()</h3>
+<p>Get all previously added POST files.</p>
+<h3 id="HttpRequest_unsetPostFiles">void HttpRequest::unsetPostFiles()</h3>
+<p>Unset the POST files list.<br />
+Affects only POST requests.</p>
+<h3 id="HttpRequest_getResponseData">array HttpRequest::getResponseData()</h3>
+<p>Get all response data after the request has been sent.</p>
+<h3 id="HttpRequest_getResponseHeader">mixed HttpRequest::getResponseHeader([string name])</h3>
+<p>Get response header(s) after the request has been sent.</p>
+<h3 id="HttpRequest_getResponseCookie">array HttpRequest::getResponseCookie([string name])</h3>
+<p>Get response cookie(s) after the request has been sent.</p>
+<h3 id="HttpRequest_getResponseBody">string HttpRequest::getResponseBody()</h3>
+<p>Get the response body after the request has been sent.</p>
+<h3 id="HttpRequest_getResponseCode">int HttpRequest::getResponseCode()</h3>
+<p>Get the response code after the request has been sent.</p>
+<h3 id="HttpRequest_getResponseInfo">array HttpRequest::getResponseInfo([string name])</h3>
+<p>Get response info after the request has been sent.<br />
+See http_get() for a full list of returned info.</p>
+<h3 id="HttpRequest_getResponseMessage">HttpMessage HttpRequest::getResponseMessage()</h3>
+<p>Get the full response as HttpMessage object.</p>
+<h3 id="HttpRequest_send">bool HttpRequest::send()</h3>
+<p>Send the HTTP request.<br />
+<br />
+GET example:</p><pre><blockquote><code><font color="#000000"><br />
+<font color="#0000BB"><?php<br />$r </font><font color="#007700">= new </font><font color="#0000BB">HttpRequest</font><font color="#007700">(</font><font color="#DD0000">'http://example.com/feed.rss'</font><font color="#007700">, </font><font color="#0000BB">HTTP_GET</font><font color="#007700">);<br /></font><font color="#0000BB">$r</font><font color="#007700">-></font><font color="#0000BB">setOptions</font><font color="#007700">(array(</font><font color="#DD0000">'lastmodified' </font><font color="#007700">=> </font><font color="#0000BB">filemtime</font><font color="#007700">(</font><font color="#DD0000">'local.rss'</font><font color="#007700">)));<br /></font><font color="#0000BB">$r</font><font color="#007700">-></font><font color="#0000BB">addQueryData</font><font color="#007700">(array(</font><font color="#DD0000">'category' </font><font color="#007700">=> </font><font color="#0000BB">3</font><font color="#007700">));<br /></font><font color="#0000BB">try </font><font color="#007700">{<br /> </font><font color="#0000BB">$r</font><font color="#007700">-></font><font color="#0000BB">send</font><font color="#007700">();<br /> if (</font><font color="#0000BB">$r</font><font color="#007700">-></font><font color="#0000BB">getResponseCode</font><font color="#007700">() == </font><font color="#0000BB">200</font><font color="#007700">) {<br /> </font><font color="#0000BB">file_put_contents</font><font color="#007700">(</font><font color="#DD0000">'local.rss'</font><font color="#007700">, </font><font color="#0000BB">$r</font><font color="#007700">-></font><font color="#0000BB">getResponseBody</font><font color="#007700">());<br /> }<br />} </font><font color="#0000BB">catch </font><font color="#007700">(</font><font color="#0000BB">HttpException $ex</font><font color="#007700">) {<br /> echo </font><font color="#0000BB">$ex</font><font color="#007700">;<br />}<br /></font><font color="#0000BB">?></font><br />
+</font><br />
+</code></blockquote></pre><p>POST example:</p><pre><blockquote><code><font color="#000000"><br />
+<font color="#0000BB"><?php<br />$r </font><font color="#007700">= new </font><font color="#0000BB">HttpRequest</font><font color="#007700">(</font><font color="#DD0000">'http://example.com/form.php'</font><font color="#007700">, </font><font color="#0000BB">HTTP_POST</font><font color="#007700">);<br /></font><font color="#0000BB">$r</font><font color="#007700">-></font><font color="#0000BB">setOptions</font><font color="#007700">(array(</font><font color="#DD0000">'cookies' </font><font color="#007700">=> array(</font><font color="#DD0000">'lang' </font><font color="#007700">=> </font><font color="#DD0000">'de'</font><font color="#007700">)));<br /></font><font color="#0000BB">$r</font><font color="#007700">-></font><font color="#0000BB">addpostFields</font><font color="#007700">(array(</font><font color="#DD0000">'user' </font><font color="#007700">=> </font><font color="#DD0000">'mike'</font><font color="#007700">, </font><font color="#DD0000">'pass' </font><font color="#007700">=> </font><font color="#DD0000">'s3c|r3t'</font><font color="#007700">));<br /></font><font color="#0000BB">$r</font><font color="#007700">-></font><font color="#0000BB">addPostFile</font><font color="#007700">(</font><font color="#DD0000">'image'</font><font color="#007700">, </font><font color="#DD0000">'profile.jpg'</font><font color="#007700">, </font><font color="#DD0000">'image/jpeg'</font><font color="#007700">);<br />if (</font><font color="#0000BB">$r</font><font color="#007700">-></font><font color="#0000BB">send</font><font color="#007700">()) {<br /> echo </font><font color="#0000BB">$r</font><font color="#007700">-></font><font color="#0000BB">getResponseBody</font><font color="#007700">();<br />}<br /></font><font color="#0000BB">?></font><br />
+</font><br />
+</code></blockquote><br />
+<br />