* fix header ids
[m6w6/ext-http] / docs / functions.html
1 <html>
2 <head>
3 <title>Function Summary of ext/http</title>
4 <style>
5 body {
6 font-size: 80%;
7 font-family: sans-serif;
8 }
9 h2 {
10 color: #339;
11 clear: both;
12 font-size: 1.2em;
13 background: #ffc;
14 padding: .2em;
15 }
16 p {
17 margin-left: 1em;
18 }
19 pre {
20 font-size: 1.2em;
21 }
22 br {
23 display: none;
24 }
25 blockquote {
26 margin-bottom: 3em;
27 border: 1px solid #ccc;
28 background: #f0f0f0;
29 padding: 0em 1em;
30 width: auto;
31 float: left;
32 }
33 p br, pre code br {
34 display: block;
35 }
36 </style>
37 </head>
38 <body><h1>http_functions.c</h1>
39 <h2 id="http_date">string http_date([int timestamp])</h2>
40 <p>This function returns a valid HTTP date regarding RFC 822/1123<br />
41 looking like: "Wed, 22 Dec 2004 11:34:47 GMT"</p>
42 <h2 id="http_absolute_uri">string http_absolute_uri(string url[, string proto])</h2>
43 <p>This function returns an absolute URI constructed from url.<br />
44 If the url is already abolute but a different proto was supplied,<br />
45 only the proto part of the URI will be updated. If url has no<br />
46 path specified, the path of the current REQUEST_URI will be taken.<br />
47 The host will be taken either from the Host HTTP header of the client<br />
48 the SERVER_NAME or just localhost if prior are not available.<br />
49 <br />
50 Some examples:</p><pre> url = "page.php" => http://www.example.com/current/path/page.php<br />
51 url = "/page.php" => http://www.example.com/page.php<br />
52 url = "/page.php", proto = "https" => https://www.example.com/page.php<br />
53 </pre></p>
54 <h2 id="http_negotiate_language">string http_negotiate_language(array supported[, string default = 'en-US'])</h2>
55 <p>This function negotiates the clients preferred language based on its<br />
56 Accept-Language HTTP header. It returns the negotiated language or<br />
57 the default language if none match.<br />
58 <br />
59 The qualifier is recognized and languages without qualifier are rated highest.<br />
60 <br />
61 The supported parameter is expected to be an array having<br />
62 the supported languages as array values.<br />
63 <br />
64 Example:</p><pre><blockquote><code><font color="#000000"><br />
65 <font color="#0000BB">&lt;?php<br />$langs </font><font color="#007700">= array(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'en-US'</font><font color="#007700">,</font><font color="#FF8000">// default<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'fr'</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'fr-FR'</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'de'</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'de-DE'</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'de-AT'</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'de-CH'</font><font color="#007700">,<br />);<br />include </font><font color="#DD0000">'./langs/'</font><font color="#007700">. </font><font color="#0000BB">http_negotiate_language</font><font color="#007700">(</font><font color="#0000BB">$langs</font><font color="#007700">) .</font><font color="#DD0000">'.php'</font><font color="#007700">;<br /></font><font color="#0000BB">?&gt;</font><br />
66 </font><br />
67 </code></blockquote><br />
68 <br />
69 </pre></p>
70 <h2 id="http_negotiate_charset">string http_negotiate_charset(array supported[, string default = 'iso-8859-1'])</h2>
71 <p>This function negotiates the clients preferred charset based on its<br />
72 Accept-Charset HTTP header. It returns the negotiated charset or<br />
73 the default charset if none match.<br />
74 <br />
75 The qualifier is recognized and charset without qualifier are rated highest.<br />
76 <br />
77 The supported parameter is expected to be an array having<br />
78 the supported charsets as array values.<br />
79 <br />
80 Example:</p><pre><blockquote><code><font color="#000000"><br />
81 <font color="#0000BB">&lt;?php<br />$charsets </font><font color="#007700">= array(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'iso-8859-1'</font><font color="#007700">, </font><font color="#FF8000">// default<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'iso-8859-2'</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'iso-8859-15'</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'utf-8'<br /></font><font color="#007700">);<br /></font><font color="#0000BB">$pref </font><font color="#007700">= </font><font color="#0000BB">http_negotiate_charset</font><font color="#007700">(</font><font color="#0000BB">$charsets</font><font color="#007700">);<br />if (!</font><font color="#0000BB">strcmp</font><font color="#007700">(</font><font color="#0000BB">$pref</font><font color="#007700">, </font><font color="#DD0000">'iso-8859-1'</font><font color="#007700">)) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">iconv_set_encoding</font><font color="#007700">(</font><font color="#DD0000">'internal_encoding'</font><font color="#007700">, </font><font color="#DD0000">'iso-8859-1'</font><font color="#007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">iconv_set_encoding</font><font color="#007700">(</font><font color="#DD0000">'output_encoding'</font><font color="#007700">, </font><font color="#0000BB">$pref</font><font color="#007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">ob_start</font><font color="#007700">(</font><font color="#DD0000">'ob_iconv_handler'</font><font color="#007700">);<br />}<br /></font><font color="#0000BB">?&gt;</font><br />
82 </font><br />
83 </code></blockquote><br />
84 <br />
85 </pre></p>
86 <h2 id="http_send_status">bool http_send_status(int status)</h2>
87 <p>Send HTTP status code.</p>
88 <h2 id="http_send_last_modified">bool http_send_last_modified([int timestamp])</h2>
89 <p>This converts the given timestamp to a valid HTTP date and<br />
90 sends it as "Last-Modified" HTTP header. If timestamp is<br />
91 omitted, current time is sent.</p>
92 <h2 id="http_send_content_type">bool http_send_content_type([string content_type = 'application/x-octetstream'])</h2>
93 <p>Sets the content type.</p>
94 <h2 id="http_send_content_disposition">bool http_send_content_disposition(string filename[, bool inline = false])</h2>
95 <p>Set the Content Disposition. The Content-Disposition header is very useful<br />
96 if the data actually sent came from a file or something similar, that should<br />
97 be "saved" by the client/user (i.e. by browsers "Save as..." popup window).</p>
98 <h2 id="http_match_modified">bool http_match_modified([int timestamp[, for_range = false]])</h2>
99 <p>Matches the given timestamp against the clients "If-Modified-Since" resp.<br />
100 "If-Unmodified-Since" HTTP headers.</p>
101 <h2 id="http_match_etag">bool http_match_etag(string etag[, for_range = false])</h2>
102 <p>This matches the given ETag against the clients<br />
103 "If-Match" resp. "If-None-Match" HTTP headers.</p>
104 <h2 id="http_cache_last_modified">bool http_cache_last_modified([int timestamp_or_expires]])</h2>
105 <p>If timestamp_or_exires is greater than 0, it is handled as timestamp<br />
106 and will be sent as date of last modification. If it is 0 or omitted,<br />
107 the current time will be sent as Last-Modified date. If it's negative,<br />
108 it is handled as expiration time in seconds, which means that if the<br />
109 requested last modification date is not between the calculated timespan,<br />
110 the Last-Modified header is updated and the actual body will be sent.</p>
111 <h2 id="http_cache_etag">bool http_cache_etag([string etag])</h2>
112 <p>This function attempts to cache the HTTP body based on an ETag,<br />
113 either supplied or generated through calculation of the MD5<br />
114 checksum of the output (uses output buffering).<br />
115 <br />
116 If clients "If-None-Match" header matches the supplied/calculated<br />
117 ETag, the body is considered cached on the clients side and<br />
118 a "304 Not Modified" status code is issued.</p>
119 <h2 id="ob_httpetaghandler">string ob_httpetaghandler(string data, int mode)</h2>
120 <p>For use with ob_start().<br />
121 Note that this has to be started as first output buffer.<br />
122 WARNING: Don't use with http_send_*().</p>
123 <h2 id="http_redirect">void http_redirect([string url[, array params[, bool session,[ bool permanent]]]])</h2>
124 <p>Redirect to a given url.<br />
125 The supplied url will be expanded with http_absolute_uri(), the params array will<br />
126 be treated with http_build_query() and the session identification will be appended<br />
127 if session is true.<br />
128 <br />
129 Depending on permanent the redirection will be issued with a permanent<br />
130 ("301 Moved Permanently") or a temporary ("302 Found") redirection<br />
131 status code.<br />
132 <br />
133 To be RFC compliant, "Redirecting to <a>URI</a>." will be displayed,<br />
134 if the client doesn't redirect immediatly.</p>
135 <h2 id="http_send_data">bool http_send_data(string data)</h2>
136 <p>Sends raw data with support for (multiple) range requests.</p>
137 <h2 id="http_send_file">bool http_send_file(string file)</h2>
138 <p>Sends a file with support for (multiple) range requests.</p>
139 <h2 id="http_send_stream">bool http_send_stream(resource stream)</h2>
140 <p>Sends an already opened stream with support for (multiple) range requests.</p>
141 <h2 id="http_chunked_decode">string http_chunked_decode(string encoded)</h2>
142 <p>This function decodes a string that was HTTP-chunked encoded.<br />
143 Returns false on failure.</p>
144 <h2 id="http_split_response">array http_split_response(string http_response)</h2>
145 <p>This function splits an HTTP response into an array with headers and the<br />
146 content body. The returned array may look simliar to the following example:</p><pre><blockquote><code><font color="#000000"><br />
147 <font color="#0000BB">&lt;?php<br /></font><font color="#007700">array(<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">0 </font><font color="#007700">=&gt; array(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'Status' </font><font color="#007700">=&gt; </font><font color="#DD0000">'200 Ok'</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'Content-Type' </font><font color="#007700">=&gt; </font><font color="#DD0000">'text/plain'</font><font color="#007700">,<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'Content-Language' </font><font color="#007700">=&gt; </font><font color="#DD0000">'en-US'<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">1 </font><font color="#007700">=&gt; </font><font color="#DD0000">"Hello World!"<br /></font><font color="#007700">);<br /></font><font color="#0000BB">?&gt;</font><br />
148 </font><br />
149 </code></blockquote><br />
150 <br />
151 </pre></p>
152 <h2 id="http_parse_headers">array http_parse_headers(string header)</h2>
153 <p></p>
154 <h2 id="http_get_request_headers">array http_get_request_headers(void)</h2>
155 <p></p>
156 <h2 id="http_get">string http_get(string url[, array options[, array &info]])</h2>
157 <p>Performs an HTTP GET request on the supplied url.<br />
158 <br />
159 The second parameter is expected to be an associative<br />
160 array where the following keys will be recognized:</p><pre> - redirect: int, whether and how many redirects to follow<br />
161 - unrestrictedauth: bool, whether to continue sending credentials on<br />
162 redirects to a different host<br />
163 - proxyhost: string, proxy host in "host[:port]" format<br />
164 - proxyport: int, use another proxy port as specified in proxyhost<br />
165 - proxyauth: string, proxy credentials in "user:pass" format<br />
166 - proxyauthtype: int, HTTP_AUTH_BASIC and/or HTTP_AUTH_NTLM<br />
167 - httpauth: string, http credentials in "user:pass" format<br />
168 - httpauthtype: int, HTTP_AUTH_BASIC, DIGEST and/or NTLM<br />
169 - compress: bool, whether to allow gzip/deflate content encoding<br />
170 (defaults to true)<br />
171 - port: int, use another port as specified in the url<br />
172 - referer: string, the referer to sends<br />
173 - useragent: string, the user agent to send<br />
174 (defaults to PECL::HTTP/version (PHP/version)))<br />
175 - headers: array, list of custom headers as associative array<br />
176 like array("header" => "value")<br />
177 - cookies: array, list of cookies as associative array<br />
178 like array("cookie" => "value")<br />
179 - cookiestore: string, path to a file where cookies are/will be stored<br />
180 - resume: int, byte offset to start the download from;<br />
181 if the server supports ranges<br />
182 - maxfilesize: int, maximum file size that should be downloaded;<br />
183 has no effect, if the size of the requested entity is not known<br />
184 - lastmodified: int, timestamp for If-(Un)Modified-Since header<br />
185 - timeout: int, seconds the request may take<br />
186 - connecttimeout: int, seconds the connect may take</pre><p>The optional third parameter will be filled with some additional information<br />
187 in form af an associative array, if supplied, like the following example:</p><pre><blockquote><code><font color="#000000"><br />
188 <font color="#0000BB">&lt;?php<br /></font><font color="#007700">array (<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'effective_url' </font><font color="#007700">=&gt; </font><font color="#DD0000">'http://localhost'</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'response_code' </font><font color="#007700">=&gt; </font><font color="#0000BB">403</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'total_time' </font><font color="#007700">=&gt; </font><font color="#0000BB">0.017</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'namelookup_time' </font><font color="#007700">=&gt; </font><font color="#0000BB">0.013</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'connect_time' </font><font color="#007700">=&gt; </font><font color="#0000BB">0.014</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'pretransfer_time' </font><font color="#007700">=&gt; </font><font color="#0000BB">0.014</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'size_upload' </font><font color="#007700">=&gt; </font><font color="#0000BB">0</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'size_download' </font><font color="#007700">=&gt; </font><font color="#0000BB">202</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'speed_download' </font><font color="#007700">=&gt; </font><font color="#0000BB">11882</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'speed_upload' </font><font color="#007700">=&gt; </font><font color="#0000BB">0</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'header_size' </font><font color="#007700">=&gt; </font><font color="#0000BB">145</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'request_size' </font><font color="#007700">=&gt; </font><font color="#0000BB">62</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'ssl_verifyresult' </font><font color="#007700">=&gt; </font><font color="#0000BB">0</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'filetime' </font><font color="#007700">=&gt; -</font><font color="#0000BB">1</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'content_length_download' </font><font color="#007700">=&gt; </font><font color="#0000BB">202</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'content_length_upload' </font><font color="#007700">=&gt; </font><font color="#0000BB">0</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'starttransfer_time' </font><font color="#007700">=&gt; </font><font color="#0000BB">0.017</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'content_type' </font><font color="#007700">=&gt; </font><font color="#DD0000">'text/html; charset=iso-8859-1'</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'redirect_time' </font><font color="#007700">=&gt; </font><font color="#0000BB">0</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'redirect_count' </font><font color="#007700">=&gt; </font><font color="#0000BB">0</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'private' </font><font color="#007700">=&gt; </font><font color="#DD0000">''</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'http_connectcode' </font><font color="#007700">=&gt; </font><font color="#0000BB">0</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'httpauth_avail' </font><font color="#007700">=&gt; </font><font color="#0000BB">0</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'proxyauth_avail' </font><font color="#007700">=&gt; </font><font color="#0000BB">0</font><font color="#007700">,<br />)<br /></font><font color="#0000BB">?&gt;</font><br />
189 </font><br />
190 </code></blockquote><br />
191 <br />
192 </pre></p>
193 <h2 id="http_head">string http_head(string url[, array options[, array &info]])</h2>
194 <p>Performs an HTTP HEAD request on the suppied url.<br />
195 Returns the HTTP response as string.<br />
196 See http_get() for a full list of available options.</p>
197 <h2 id="http_post_data">string http_post_data(string url, string data[, array options[, &info]])</h2>
198 <p>Performs an HTTP POST request, posting data.<br />
199 Returns the HTTP response as string.<br />
200 See http_get() for a full list of available options.</p>
201 <h2 id="http_post_array">string http_post_array(string url, array data[, array options[, array &info]])</h2>
202 <p>Performs an HTTP POST request, posting www-form-urlencoded array data.<br />
203 Returns the HTTP response as string.<br />
204 See http_get() for a full list of available options.</p>
205 <h2 id="http_auth_basic">bool http_auth_basic(string user, string pass[, string realm = "Restricted"])</h2>
206 <p>Example:</p><pre><blockquote><code><font color="#000000"><br />
207 <font color="#0000BB">&lt;?php<br /></font><font color="#007700">if (!</font><font color="#0000BB">http_auth_basic</font><font color="#007700">(</font><font color="#DD0000">'mike'</font><font color="#007700">, </font><font color="#DD0000">'s3c|r3t'</font><font color="#007700">)) {<br />&nbsp;&nbsp;&nbsp;&nbsp;die(</font><font color="#DD0000">'&lt;h1&gt;Authorization failed!&lt;/h1&gt;'</font><font color="#007700">);<br />}<br /></font><font color="#0000BB">?&gt;</font><br />
208 </font><br />
209 </code></blockquote><br />
210 <br />
211 </pre></p>
212 <h2 id="http_auth_basic_cb">bool http_auth_basic_cb(mixed callback[, string realm = "Restricted"])</h2>
213 <p>Example:</p><pre><blockquote><code><font color="#000000"><br />
214 <font color="#0000BB">&lt;?php<br /></font><font color="#007700">function </font><font color="#0000BB">auth_cb</font><font color="#007700">(</font><font color="#0000BB">$user</font><font color="#007700">, </font><font color="#0000BB">$pass</font><font color="#007700">)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;global </font><font color="#0000BB">$db</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$query </font><font color="#007700">= </font><font color="#DD0000">'SELECT pass FROM users WHERE user='</font><font color="#007700">. </font><font color="#0000BB">$db</font><font color="#007700">-&gt;</font><font color="#0000BB">quoteSmart</font><font color="#007700">(</font><font color="#0000BB">$user</font><font color="#007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;if (</font><font color="#0000BB">strlen</font><font color="#007700">(</font><font color="#0000BB">$realpass </font><font color="#007700">= </font><font color="#0000BB">$db</font><font color="#007700">-&gt;</font><font color="#0000BB">getOne</font><font color="#007700">(</font><font color="#0000BB">$query</font><font color="#007700">)) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return </font><font color="#0000BB">$pass </font><font color="#007700">=== </font><font color="#0000BB">$realpass</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;return </font><font color="#0000BB">false</font><font color="#007700">;<br />}<br />if (!</font><font color="#0000BB">http_auth_basic_cb</font><font color="#007700">(</font><font color="#DD0000">'auth_cb'</font><font color="#007700">)) {<br />&nbsp;&nbsp;&nbsp;&nbsp;die(</font><font color="#DD0000">'&lt;h1&gt;Authorization failed&lt;/h1&gt;'</font><font color="#007700">);<br />}<br /></font><font color="#0000BB">?&gt;</font><br />
215 </font><br />
216 </code></blockquote><br />
217 <br />
218 </pre></p>
219 <h2 id="http_build_query">string http_build_query(mixed formdata [, string prefix])</h2>
220 <p>Generates a form-encoded query string from an associative array or object.</p>
221 <hr noshade>
222 <h1>http_methods.c</h1>
223 <h2 id="HTTPi_Response___construct">void HTTPi_Response::__construct(bool cache, bool gzip)</h2>
224 <p></p>
225 <h2 id="HTTPi_Response_setCache">bool HTTPi_Response::setCache(bool cache)</h2>
226 <p></p>
227 <h2 id="HTTPi_Response_getCache">bool HTTPi_Response::getCache()</h2>
228 <p></p>
229 <h2 id="HTTPi_Response_setGzip">bool HTTPi_Response::setGzip(bool gzip)</h2>
230 <p></p>
231 <h2 id="HTTPi_Response_getGzip">bool HTTPi_Response::getGzip()</h2>
232 <p></p>
233 <h2 id="HTTPi_Response_setCacheControl">bool HTTPi_Response::setCacheControl(string control[, bool raw = false])</h2>
234 <p></p>
235 <h2 id="HTTPi_Response_getCacheControl">string HTTPi_Response::getCacheControl()</h2>
236 <p></p>
237 <h2 id="HTTPi_Response_setContentType">bool HTTPi::setContentType(string content_type)</h2>
238 <p></p>
239 <h2 id="HTTPi_Response_getContentType">string HTTPi_Response::getContentType()</h2>
240 <p></p>
241 <h2 id="HTTPi_Response_setContentDisposition">bool HTTPi_Response::setContentDisposition(string filename[, bool inline = false])</h2>
242 <p></p>
243 <h2 id="HTTPi_Response_getContentDisposition">array HTTPi_Response::getContentDisposition()</h2>
244 <p></p>
245 <h2 id="HTTPi_Response_setETag">bool HTTPi_Response::setETag(string etag)</h2>
246 <p></p>
247 <h2 id="HTTPi_Response_getETag">string HTTPi_Response::getETag()</h2>
248 <p></p>
249 <h2 id="HTTPi_Response_setData">bool HTTPi_Response::setData(string data)</h2>
250 <p></p>
251 <h2 id="HTTPi_Response_getData">string HTTPi_Response::getData()</h2>
252 <p></p>
253 <h2 id="HTTPi_Response_setStream">bool HTTPi_Response::setStream(resource stream)</h2>
254 <p></p>
255 <h2 id="HTTPi_Response_getStream">resource HTTPi_Response::getStream()</h2>
256 <p></p>
257 <h2 id="HTTPi_Response_setFile">bool HTTPi_Response::setFile(string file)</h2>
258 <p></p>
259 <h2 id="HTTPi_Response_getFile">string HTTPi_Response::getFile()</h2>
260 <p></p>
261 <h2 id="HTTPi_Request___construct">void HTTPi_Request::__construct([string url[, long request_method = HTTP_GET]])</h2>
262 <p></p>
263 <h2 id="HTTPi_Request___destruct">void HTTPi_Request::__destruct()</h2>
264 <p></p>
265 <h2 id="HTTPi_Request_setOptions">bool HTTPi_Request::setOptions(array options)</h2>
266 <p></p>
267 <h2 id="HTTPi_Request_getOptions">array HTTPi_Request::getOptions()</h2>
268 <p></p>
269 <h2 id="HTTPi_Request_setURL">bool HTTPi_Request::setURL(string url)</h2>
270 <p></p>
271 <h2 id="HTTPi_Request_getURL">string HTTPi_Request::getUrl()</h2>
272 <p></p>
273 <h2 id="HTTPi_Request_setMethod">bool HTTPi_Request::setMethod(long request_method)</h2>
274 <p></p>
275 <h2 id="HTTPi_Request_getMethod">long HTTPi_Request::getMethod()</h2>
276 <p></p>
277 <h2 id="HTTPi_Request_setContentType">bool HTTPi_Request::setContentType(string content_type)</h2>
278 <p></p>
279 <h2 id="HTTPi_Request_getContentType">string HTTPi_Request::getContentType()</h2>
280 <p></p>
281 <h2 id="HTTPi_Request_setQueryData">bool HTTPi_Request::setQueryData(mixed query_data)</h2>
282 <p></p>
283 <h2 id="HTTPi_Request_getQueryData">string HTTPi_Request::getQueryData()</h2>
284 <p></p>
285 <h2 id="HTTPi_Request_addQueryData">bool HTTPi_Request::addQueryData(array query_params)</h2>
286 <p></p>
287 <h2 id="HTTPi_Request_unsetQueryData">void HTTPi_Request::unsetQueryData()</h2>
288 <p></p>
289 <h2 id="HTTPi_Request_addPostData">bool HTTPi_Request::addPostData(array post_data)</h2>
290 <p></p>
291 <h2 id="HTTPi_Request_setPostData">bool HTTPi_Request::setPostData(array post_data)</h2>
292 <p></p>
293 <h2 id="HTTPi_Request_getPostData">array HTTPi_Request::getPostData()</h2>
294 <p></p>
295 <h2 id="HTTPi_Request_unsetPostData">void HTTPi_Request::unsetPostData()</h2>
296 <p></p>
297 <h2 id="HTTPi_Request_addPostFile">bool HTTPi_Request::addPostFile(string name, string file[, string content_type = "application/x-octetstream"])</h2>
298 <p></p>
299 <h2 id="HTTPi_Request_getPostFiles">array HTTPi_Request::getPostFiles()</h2>
300 <p></p>
301 <h2 id="HTTPi_Request_unsetPostFiles">void HTTPi_Request::unsetPostFiles()</h2>
302 <p></p>
303 <h2 id="HTTPi_Request_getResponseData">array HTTPi_Request::getResponseData()</h2>
304 <p></p>
305 <h2 id="HTTPi_Request_getResponseHeaders">array HTTPi_Request::getResponseHeaders()</h2>
306 <p></p>
307 <h2 id="HTTPi_Request_getResponseBody">string HTTPi_Request::getResponseBody()</h2>
308 <p></p>
309 <h2 id="HTTPi_Request_getResponseInfo">array HTTPi_Request::getResponseInfo()</h2>
310 <p></p>
311 <h2 id="HTTPi_Request_send">bool HTTPi_Request::send()</h2>
312 <p></p>
313 <hr noshade>
314 <p><b>Generated at: Fri, 4 Mar 2005 14:10:16 +0100</b></p>
315 </body>
316 </html>