Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1 | <HTML |
| 2 | ><HEAD |
| 3 | ><TITLE |
| 4 | >nanohttp</TITLE |
| 5 | ><META |
| 6 | NAME="GENERATOR" |
Daniel Veillard | 60087f3 | 2001-10-10 09:45:09 +0000 | [diff] [blame] | 7 | CONTENT="Modular DocBook HTML Stylesheet Version 1.64 |
| 8 | "><LINK |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 9 | REL="HOME" |
| 10 | TITLE="Gnome XML Library Reference Manual" |
| 11 | HREF="book1.html"><LINK |
| 12 | REL="UP" |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 13 | TITLE="Libxml Library Reference" |
| 14 | HREF="libxml-lib.html"><LINK |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 15 | REL="PREVIOUS" |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 16 | TITLE="xinclude" |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 17 | HREF="libxml-xinclude.html"><LINK |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 18 | REL="NEXT" |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 19 | TITLE="nanoftp" |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 20 | HREF="libxml-nanoftp.html"></HEAD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 21 | ><BODY |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 22 | CLASS="REFENTRY" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 23 | BGCOLOR="#FFFFFF" |
| 24 | TEXT="#000000" |
Daniel Veillard | 503b893 | 2001-01-05 06:36:31 +0000 | [diff] [blame] | 25 | LINK="#0000FF" |
| 26 | VLINK="#840084" |
| 27 | ALINK="#0000FF" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 28 | ><DIV |
| 29 | CLASS="NAVHEADER" |
| 30 | ><TABLE |
| 31 | WIDTH="100%" |
| 32 | BORDER="0" |
| 33 | BGCOLOR="#000000" |
| 34 | CELLPADDING="1" |
| 35 | CELLSPACING="0" |
| 36 | ><TR |
| 37 | ><TH |
| 38 | COLSPAN="4" |
| 39 | ALIGN="center" |
| 40 | ><FONT |
| 41 | COLOR="#FFFFFF" |
| 42 | SIZE="5" |
| 43 | >Gnome XML Library Reference Manual</FONT |
| 44 | ></TH |
| 45 | ></TR |
| 46 | ><TR |
| 47 | ><TD |
| 48 | WIDTH="25%" |
| 49 | BGCOLOR="#C00000" |
| 50 | ALIGN="left" |
| 51 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 52 | HREF="libxml-xinclude.html" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 53 | ><FONT |
| 54 | COLOR="#FFFFFF" |
| 55 | SIZE="3" |
| 56 | ><B |
| 57 | ><<< Previous Page</B |
| 58 | ></FONT |
| 59 | ></A |
| 60 | ></TD |
| 61 | ><TD |
| 62 | WIDTH="25%" |
| 63 | BGCOLOR="#0000C0" |
| 64 | ALIGN="center" |
| 65 | ><FONT |
| 66 | COLOR="#FFFFFF" |
| 67 | SIZE="3" |
| 68 | ><B |
| 69 | ><A |
| 70 | HREF="book1.html" |
| 71 | ><FONT |
| 72 | COLOR="#FFFFFF" |
| 73 | SIZE="3" |
| 74 | ><B |
| 75 | >Home</B |
| 76 | ></FONT |
| 77 | ></A |
| 78 | ></B |
| 79 | ></FONT |
| 80 | ></TD |
| 81 | ><TD |
| 82 | WIDTH="25%" |
| 83 | BGCOLOR="#00C000" |
| 84 | ALIGN="center" |
| 85 | ><FONT |
| 86 | COLOR="#FFFFFF" |
| 87 | SIZE="3" |
| 88 | ><B |
| 89 | ><A |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 90 | HREF="libxml-lib.html" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 91 | ><FONT |
| 92 | COLOR="#FFFFFF" |
| 93 | SIZE="3" |
| 94 | ><B |
| 95 | >Up</B |
| 96 | ></FONT |
| 97 | ></A |
| 98 | ></B |
| 99 | ></FONT |
| 100 | ></TD |
| 101 | ><TD |
| 102 | WIDTH="25%" |
| 103 | BGCOLOR="#C00000" |
| 104 | ALIGN="right" |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 105 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 106 | HREF="libxml-nanoftp.html" |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 107 | ><FONT |
| 108 | COLOR="#FFFFFF" |
| 109 | SIZE="3" |
| 110 | ><B |
| 111 | >Next Page >>></B |
| 112 | ></FONT |
| 113 | ></A |
| 114 | ></TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 115 | ></TR |
| 116 | ></TABLE |
| 117 | ></DIV |
| 118 | ><H1 |
Daniel Veillard | 503b893 | 2001-01-05 06:36:31 +0000 | [diff] [blame] | 119 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 120 | NAME="LIBXML-NANOHTTP" |
Daniel Veillard | 503b893 | 2001-01-05 06:36:31 +0000 | [diff] [blame] | 121 | >nanohttp</A |
| 122 | ></H1 |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 123 | ><DIV |
| 124 | CLASS="REFNAMEDIV" |
| 125 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 126 | NAME="AEN16925" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 127 | ></A |
| 128 | ><H2 |
| 129 | >Name</H2 |
Daniel Veillard | 503b893 | 2001-01-05 06:36:31 +0000 | [diff] [blame] | 130 | >nanohttp -- </DIV |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 131 | ><DIV |
| 132 | CLASS="REFSYNOPSISDIV" |
| 133 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 134 | NAME="AEN16928" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 135 | ></A |
| 136 | ><H2 |
| 137 | >Synopsis</H2 |
| 138 | ><TABLE |
| 139 | BORDER="0" |
| 140 | BGCOLOR="#D6E8FF" |
| 141 | WIDTH="100%" |
| 142 | CELLPADDING="6" |
| 143 | ><TR |
| 144 | ><TD |
| 145 | ><PRE |
| 146 | CLASS="SYNOPSIS" |
| 147 | > |
| 148 | |
Daniel Veillard | e41f2b7 | 2000-01-30 20:00:07 +0000 | [diff] [blame] | 149 | void <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 150 | HREF="libxml-nanohttp.html#XMLNANOHTTPINIT" |
Daniel Veillard | e41f2b7 | 2000-01-30 20:00:07 +0000 | [diff] [blame] | 151 | >xmlNanoHTTPInit</A |
| 152 | > (void); |
| 153 | void <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 154 | HREF="libxml-nanohttp.html#XMLNANOHTTPCLEANUP" |
Daniel Veillard | e41f2b7 | 2000-01-30 20:00:07 +0000 | [diff] [blame] | 155 | >xmlNanoHTTPCleanup</A |
| 156 | > (void); |
| 157 | void <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 158 | HREF="libxml-nanohttp.html#XMLNANOHTTPSCANPROXY" |
Daniel Veillard | e41f2b7 | 2000-01-30 20:00:07 +0000 | [diff] [blame] | 159 | >xmlNanoHTTPScanProxy</A |
| 160 | > (const char *URL); |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 161 | int <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 162 | HREF="libxml-nanohttp.html#XMLNANOHTTPFETCH" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 163 | >xmlNanoHTTPFetch</A |
| 164 | > (const char *URL, |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 165 | const char *filename, |
| 166 | char **contentType); |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 167 | void* <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 168 | HREF="libxml-nanohttp.html#XMLNANOHTTPMETHOD" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 169 | >xmlNanoHTTPMethod</A |
| 170 | > (const char *URL, |
| 171 | const char *method, |
| 172 | const char *input, |
| 173 | char **contentType, |
Daniel Veillard | f012a64 | 2001-07-23 19:10:52 +0000 | [diff] [blame] | 174 | const char *headers, |
| 175 | int ilen); |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 176 | void* <A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 177 | HREF="libxml-nanohttp.html#XMLNANOHTTPMETHODREDIR" |
| 178 | >xmlNanoHTTPMethodRedir</A |
| 179 | > (const char *URL, |
| 180 | const char *method, |
| 181 | const char *input, |
| 182 | char **contentType, |
| 183 | char **redir, |
Daniel Veillard | f012a64 | 2001-07-23 19:10:52 +0000 | [diff] [blame] | 184 | const char *headers, |
| 185 | int ilen); |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 186 | void* <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 187 | HREF="libxml-nanohttp.html#XMLNANOHTTPOPEN" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 188 | >xmlNanoHTTPOpen</A |
| 189 | > (const char *URL, |
| 190 | char **contentType); |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 191 | void* <A |
| 192 | HREF="libxml-nanohttp.html#XMLNANOHTTPOPENREDIR" |
| 193 | >xmlNanoHTTPOpenRedir</A |
| 194 | > (const char *URL, |
| 195 | char **contentType, |
| 196 | char **redir); |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 197 | int <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 198 | HREF="libxml-nanohttp.html#XMLNANOHTTPRETURNCODE" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 199 | >xmlNanoHTTPReturnCode</A |
| 200 | > (void *ctx); |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 201 | const char* <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 202 | HREF="libxml-nanohttp.html#XMLNANOHTTPAUTHHEADER" |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 203 | >xmlNanoHTTPAuthHeader</A |
| 204 | > (void *ctx); |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 205 | int <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 206 | HREF="libxml-nanohttp.html#XMLNANOHTTPREAD" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 207 | >xmlNanoHTTPRead</A |
| 208 | > (void *ctx, |
| 209 | void *dest, |
| 210 | int len); |
| 211 | int <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 212 | HREF="libxml-nanohttp.html#XMLNANOHTTPSAVE" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 213 | >xmlNanoHTTPSave</A |
| 214 | > (void *ctxt, |
| 215 | const char *filename); |
| 216 | void <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 217 | HREF="libxml-nanohttp.html#XMLNANOHTTPCLOSE" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 218 | >xmlNanoHTTPClose</A |
| 219 | > (void *ctx);</PRE |
| 220 | ></TD |
| 221 | ></TR |
| 222 | ></TABLE |
| 223 | ></DIV |
| 224 | ><DIV |
| 225 | CLASS="REFSECT1" |
| 226 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 227 | NAME="AEN16944" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 228 | ></A |
| 229 | ><H2 |
| 230 | >Description</H2 |
| 231 | ><P |
| 232 | ></P |
| 233 | ></DIV |
| 234 | ><DIV |
| 235 | CLASS="REFSECT1" |
| 236 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 237 | NAME="AEN16947" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 238 | ></A |
| 239 | ><H2 |
| 240 | >Details</H2 |
| 241 | ><DIV |
| 242 | CLASS="REFSECT2" |
| 243 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 244 | NAME="AEN16949" |
Daniel Veillard | e41f2b7 | 2000-01-30 20:00:07 +0000 | [diff] [blame] | 245 | ></A |
| 246 | ><H3 |
| 247 | ><A |
| 248 | NAME="XMLNANOHTTPINIT" |
| 249 | ></A |
| 250 | >xmlNanoHTTPInit ()</H3 |
| 251 | ><TABLE |
| 252 | BORDER="0" |
| 253 | BGCOLOR="#D6E8FF" |
| 254 | WIDTH="100%" |
| 255 | CELLPADDING="6" |
| 256 | ><TR |
| 257 | ><TD |
| 258 | ><PRE |
| 259 | CLASS="PROGRAMLISTING" |
| 260 | >void xmlNanoHTTPInit (void);</PRE |
| 261 | ></TD |
| 262 | ></TR |
| 263 | ></TABLE |
| 264 | ><P |
| 265 | >Initialize the HTTP protocol layer. |
| 266 | Currently it just checks for proxy informations</P |
| 267 | ><P |
| 268 | ></P |
| 269 | ></DIV |
| 270 | ><HR><DIV |
| 271 | CLASS="REFSECT2" |
| 272 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 273 | NAME="AEN16955" |
Daniel Veillard | e41f2b7 | 2000-01-30 20:00:07 +0000 | [diff] [blame] | 274 | ></A |
| 275 | ><H3 |
| 276 | ><A |
| 277 | NAME="XMLNANOHTTPCLEANUP" |
| 278 | ></A |
| 279 | >xmlNanoHTTPCleanup ()</H3 |
| 280 | ><TABLE |
| 281 | BORDER="0" |
| 282 | BGCOLOR="#D6E8FF" |
| 283 | WIDTH="100%" |
| 284 | CELLPADDING="6" |
| 285 | ><TR |
| 286 | ><TD |
| 287 | ><PRE |
| 288 | CLASS="PROGRAMLISTING" |
| 289 | >void xmlNanoHTTPCleanup (void);</PRE |
| 290 | ></TD |
| 291 | ></TR |
| 292 | ></TABLE |
| 293 | ><P |
Daniel Veillard | f012a64 | 2001-07-23 19:10:52 +0000 | [diff] [blame] | 294 | >Cleanup the HTTP protocol layer.</P |
| 295 | ><P |
Daniel Veillard | e41f2b7 | 2000-01-30 20:00:07 +0000 | [diff] [blame] | 296 | ></P |
| 297 | ></DIV |
| 298 | ><HR><DIV |
| 299 | CLASS="REFSECT2" |
| 300 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 301 | NAME="AEN16961" |
Daniel Veillard | e41f2b7 | 2000-01-30 20:00:07 +0000 | [diff] [blame] | 302 | ></A |
| 303 | ><H3 |
| 304 | ><A |
| 305 | NAME="XMLNANOHTTPSCANPROXY" |
| 306 | ></A |
| 307 | >xmlNanoHTTPScanProxy ()</H3 |
| 308 | ><TABLE |
| 309 | BORDER="0" |
| 310 | BGCOLOR="#D6E8FF" |
| 311 | WIDTH="100%" |
| 312 | CELLPADDING="6" |
| 313 | ><TR |
| 314 | ><TD |
| 315 | ><PRE |
| 316 | CLASS="PROGRAMLISTING" |
| 317 | >void xmlNanoHTTPScanProxy (const char *URL);</PRE |
| 318 | ></TD |
| 319 | ></TR |
| 320 | ></TABLE |
| 321 | ><P |
| 322 | >(Re)Initialize the HTTP Proxy context by parsing the URL and finding |
| 323 | the protocol host port it indicates. |
| 324 | Should be like http://myproxy/ or http://myproxy:3128/ |
| 325 | A NULL URL cleans up proxy informations.</P |
| 326 | ><P |
| 327 | ></P |
| 328 | ><DIV |
| 329 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 330 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 331 | NAME="AEN16967" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 332 | ></A |
Daniel Veillard | e41f2b7 | 2000-01-30 20:00:07 +0000 | [diff] [blame] | 333 | ><P |
| 334 | ></P |
| 335 | ><TABLE |
| 336 | BORDER="0" |
| 337 | WIDTH="100%" |
| 338 | BGCOLOR="#FFD0D0" |
| 339 | CELLSPACING="0" |
| 340 | CELLPADDING="4" |
| 341 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 342 | ><TBODY |
Daniel Veillard | e41f2b7 | 2000-01-30 20:00:07 +0000 | [diff] [blame] | 343 | ><TR |
| 344 | ><TD |
| 345 | WIDTH="20%" |
| 346 | ALIGN="RIGHT" |
| 347 | VALIGN="TOP" |
| 348 | ><TT |
| 349 | CLASS="PARAMETER" |
| 350 | ><I |
| 351 | >URL</I |
| 352 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 353 | > :</TD |
Daniel Veillard | e41f2b7 | 2000-01-30 20:00:07 +0000 | [diff] [blame] | 354 | ><TD |
| 355 | WIDTH="80%" |
| 356 | ALIGN="LEFT" |
| 357 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 358 | > The proxy URL used to initialize the proxy context</TD |
Daniel Veillard | e41f2b7 | 2000-01-30 20:00:07 +0000 | [diff] [blame] | 359 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 360 | ></TBODY |
Daniel Veillard | e41f2b7 | 2000-01-30 20:00:07 +0000 | [diff] [blame] | 361 | ></TABLE |
| 362 | ><P |
| 363 | ></P |
| 364 | ></DIV |
| 365 | ></DIV |
| 366 | ><HR><DIV |
| 367 | CLASS="REFSECT2" |
| 368 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 369 | NAME="AEN16976" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 370 | ></A |
| 371 | ><H3 |
| 372 | ><A |
| 373 | NAME="XMLNANOHTTPFETCH" |
| 374 | ></A |
| 375 | >xmlNanoHTTPFetch ()</H3 |
| 376 | ><TABLE |
| 377 | BORDER="0" |
| 378 | BGCOLOR="#D6E8FF" |
| 379 | WIDTH="100%" |
| 380 | CELLPADDING="6" |
| 381 | ><TR |
| 382 | ><TD |
| 383 | ><PRE |
| 384 | CLASS="PROGRAMLISTING" |
| 385 | >int xmlNanoHTTPFetch (const char *URL, |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 386 | const char *filename, |
| 387 | char **contentType);</PRE |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 388 | ></TD |
| 389 | ></TR |
| 390 | ></TABLE |
| 391 | ><P |
| 392 | >This function try to fetch the indicated resource via HTTP GET |
| 393 | and save it's content in the file.</P |
| 394 | ><P |
| 395 | ></P |
| 396 | ><DIV |
| 397 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 398 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 399 | NAME="AEN16982" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 400 | ></A |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 401 | ><P |
| 402 | ></P |
| 403 | ><TABLE |
| 404 | BORDER="0" |
| 405 | WIDTH="100%" |
| 406 | BGCOLOR="#FFD0D0" |
| 407 | CELLSPACING="0" |
| 408 | CELLPADDING="4" |
| 409 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 410 | ><TBODY |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 411 | ><TR |
| 412 | ><TD |
| 413 | WIDTH="20%" |
| 414 | ALIGN="RIGHT" |
| 415 | VALIGN="TOP" |
| 416 | ><TT |
| 417 | CLASS="PARAMETER" |
| 418 | ><I |
| 419 | >URL</I |
| 420 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 421 | > :</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 422 | ><TD |
| 423 | WIDTH="80%" |
| 424 | ALIGN="LEFT" |
| 425 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 426 | > The URL to load</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 427 | ></TR |
| 428 | ><TR |
| 429 | ><TD |
| 430 | WIDTH="20%" |
| 431 | ALIGN="RIGHT" |
| 432 | VALIGN="TOP" |
| 433 | ><TT |
| 434 | CLASS="PARAMETER" |
| 435 | ><I |
| 436 | >filename</I |
| 437 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 438 | > :</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 439 | ><TD |
| 440 | WIDTH="80%" |
| 441 | ALIGN="LEFT" |
| 442 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 443 | > the filename where the content should be saved</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 444 | ></TR |
| 445 | ><TR |
| 446 | ><TD |
| 447 | WIDTH="20%" |
| 448 | ALIGN="RIGHT" |
| 449 | VALIGN="TOP" |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 450 | ><TT |
| 451 | CLASS="PARAMETER" |
| 452 | ><I |
| 453 | >contentType</I |
| 454 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 455 | > :</TD |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 456 | ><TD |
| 457 | WIDTH="80%" |
| 458 | ALIGN="LEFT" |
| 459 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 460 | > if available the Content-Type information will be |
| 461 | returned at that location</TD |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 462 | ></TR |
| 463 | ><TR |
| 464 | ><TD |
| 465 | WIDTH="20%" |
| 466 | ALIGN="RIGHT" |
| 467 | VALIGN="TOP" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 468 | ><I |
| 469 | CLASS="EMPHASIS" |
| 470 | >Returns</I |
| 471 | > :</TD |
| 472 | ><TD |
| 473 | WIDTH="80%" |
| 474 | ALIGN="LEFT" |
| 475 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 476 | >-1 in case of failure, 0 incase of success. The contentType, |
| 477 | if provided must be freed by the caller</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 478 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 479 | ></TBODY |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 480 | ></TABLE |
| 481 | ><P |
| 482 | ></P |
| 483 | ></DIV |
| 484 | ></DIV |
| 485 | ><HR><DIV |
| 486 | CLASS="REFSECT2" |
| 487 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 488 | NAME="AEN17003" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 489 | ></A |
| 490 | ><H3 |
| 491 | ><A |
| 492 | NAME="XMLNANOHTTPMETHOD" |
| 493 | ></A |
| 494 | >xmlNanoHTTPMethod ()</H3 |
| 495 | ><TABLE |
| 496 | BORDER="0" |
| 497 | BGCOLOR="#D6E8FF" |
| 498 | WIDTH="100%" |
| 499 | CELLPADDING="6" |
| 500 | ><TR |
| 501 | ><TD |
| 502 | ><PRE |
| 503 | CLASS="PROGRAMLISTING" |
| 504 | >void* xmlNanoHTTPMethod (const char *URL, |
| 505 | const char *method, |
| 506 | const char *input, |
| 507 | char **contentType, |
Daniel Veillard | f012a64 | 2001-07-23 19:10:52 +0000 | [diff] [blame] | 508 | const char *headers, |
| 509 | int ilen);</PRE |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 510 | ></TD |
| 511 | ></TR |
| 512 | ></TABLE |
| 513 | ><P |
| 514 | >This function try to open a connection to the indicated resource |
| 515 | via HTTP using the given <TT |
| 516 | CLASS="PARAMETER" |
| 517 | ><I |
| 518 | >method</I |
| 519 | ></TT |
| 520 | >, adding the given extra headers |
| 521 | and the input buffer for the request content.</P |
| 522 | ><P |
| 523 | ></P |
| 524 | ><DIV |
| 525 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 526 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 527 | NAME="AEN17010" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 528 | ></A |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 529 | ><P |
| 530 | ></P |
| 531 | ><TABLE |
| 532 | BORDER="0" |
| 533 | WIDTH="100%" |
| 534 | BGCOLOR="#FFD0D0" |
| 535 | CELLSPACING="0" |
| 536 | CELLPADDING="4" |
| 537 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 538 | ><TBODY |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 539 | ><TR |
| 540 | ><TD |
| 541 | WIDTH="20%" |
| 542 | ALIGN="RIGHT" |
| 543 | VALIGN="TOP" |
| 544 | ><TT |
| 545 | CLASS="PARAMETER" |
| 546 | ><I |
| 547 | >URL</I |
| 548 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 549 | > :</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 550 | ><TD |
| 551 | WIDTH="80%" |
| 552 | ALIGN="LEFT" |
| 553 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 554 | > The URL to load</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 555 | ></TR |
| 556 | ><TR |
| 557 | ><TD |
| 558 | WIDTH="20%" |
| 559 | ALIGN="RIGHT" |
| 560 | VALIGN="TOP" |
| 561 | ><TT |
| 562 | CLASS="PARAMETER" |
| 563 | ><I |
| 564 | >method</I |
| 565 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 566 | > :</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 567 | ><TD |
| 568 | WIDTH="80%" |
| 569 | ALIGN="LEFT" |
| 570 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 571 | > the HTTP method to use</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 572 | ></TR |
| 573 | ><TR |
| 574 | ><TD |
| 575 | WIDTH="20%" |
| 576 | ALIGN="RIGHT" |
| 577 | VALIGN="TOP" |
| 578 | ><TT |
| 579 | CLASS="PARAMETER" |
| 580 | ><I |
| 581 | >input</I |
| 582 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 583 | > :</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 584 | ><TD |
| 585 | WIDTH="80%" |
| 586 | ALIGN="LEFT" |
| 587 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 588 | > the input string if any</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 589 | ></TR |
| 590 | ><TR |
| 591 | ><TD |
| 592 | WIDTH="20%" |
| 593 | ALIGN="RIGHT" |
| 594 | VALIGN="TOP" |
| 595 | ><TT |
| 596 | CLASS="PARAMETER" |
| 597 | ><I |
| 598 | >contentType</I |
| 599 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 600 | > :</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 601 | ><TD |
| 602 | WIDTH="80%" |
| 603 | ALIGN="LEFT" |
| 604 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 605 | > the Content-Type information IN and OUT</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 606 | ></TR |
| 607 | ><TR |
| 608 | ><TD |
| 609 | WIDTH="20%" |
| 610 | ALIGN="RIGHT" |
| 611 | VALIGN="TOP" |
| 612 | ><TT |
| 613 | CLASS="PARAMETER" |
| 614 | ><I |
| 615 | >headers</I |
| 616 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 617 | > :</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 618 | ><TD |
| 619 | WIDTH="80%" |
| 620 | ALIGN="LEFT" |
| 621 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 622 | > the extra headers</TD |
Daniel Veillard | f012a64 | 2001-07-23 19:10:52 +0000 | [diff] [blame] | 623 | ></TR |
| 624 | ><TR |
| 625 | ><TD |
| 626 | WIDTH="20%" |
| 627 | ALIGN="RIGHT" |
| 628 | VALIGN="TOP" |
| 629 | ><TT |
| 630 | CLASS="PARAMETER" |
| 631 | ><I |
| 632 | >ilen</I |
| 633 | ></TT |
| 634 | > :</TD |
| 635 | ><TD |
| 636 | WIDTH="80%" |
| 637 | ALIGN="LEFT" |
| 638 | VALIGN="TOP" |
| 639 | > </TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 640 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 641 | ></TBODY |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 642 | ></TABLE |
| 643 | ><P |
| 644 | ></P |
| 645 | ></DIV |
| 646 | ></DIV |
| 647 | ><HR><DIV |
| 648 | CLASS="REFSECT2" |
| 649 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 650 | NAME="AEN17039" |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 651 | ></A |
| 652 | ><H3 |
| 653 | ><A |
| 654 | NAME="XMLNANOHTTPMETHODREDIR" |
| 655 | ></A |
| 656 | >xmlNanoHTTPMethodRedir ()</H3 |
| 657 | ><TABLE |
| 658 | BORDER="0" |
| 659 | BGCOLOR="#D6E8FF" |
| 660 | WIDTH="100%" |
| 661 | CELLPADDING="6" |
| 662 | ><TR |
| 663 | ><TD |
| 664 | ><PRE |
| 665 | CLASS="PROGRAMLISTING" |
| 666 | >void* xmlNanoHTTPMethodRedir (const char *URL, |
| 667 | const char *method, |
| 668 | const char *input, |
| 669 | char **contentType, |
| 670 | char **redir, |
Daniel Veillard | f012a64 | 2001-07-23 19:10:52 +0000 | [diff] [blame] | 671 | const char *headers, |
| 672 | int ilen);</PRE |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 673 | ></TD |
| 674 | ></TR |
| 675 | ></TABLE |
| 676 | ><P |
| 677 | >This function try to open a connection to the indicated resource |
| 678 | via HTTP using the given <TT |
| 679 | CLASS="PARAMETER" |
| 680 | ><I |
| 681 | >method</I |
| 682 | ></TT |
| 683 | >, adding the given extra headers |
| 684 | and the input buffer for the request content.</P |
| 685 | ><P |
| 686 | ></P |
| 687 | ><DIV |
| 688 | CLASS="INFORMALTABLE" |
| 689 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 690 | NAME="AEN17046" |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 691 | ></A |
| 692 | ><P |
| 693 | ></P |
| 694 | ><TABLE |
| 695 | BORDER="0" |
| 696 | WIDTH="100%" |
| 697 | BGCOLOR="#FFD0D0" |
| 698 | CELLSPACING="0" |
| 699 | CELLPADDING="4" |
| 700 | CLASS="CALSTABLE" |
| 701 | ><TBODY |
| 702 | ><TR |
| 703 | ><TD |
| 704 | WIDTH="20%" |
| 705 | ALIGN="RIGHT" |
| 706 | VALIGN="TOP" |
| 707 | ><TT |
| 708 | CLASS="PARAMETER" |
| 709 | ><I |
| 710 | >URL</I |
| 711 | ></TT |
| 712 | > :</TD |
| 713 | ><TD |
| 714 | WIDTH="80%" |
| 715 | ALIGN="LEFT" |
| 716 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 717 | > The URL to load</TD |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 718 | ></TR |
| 719 | ><TR |
| 720 | ><TD |
| 721 | WIDTH="20%" |
| 722 | ALIGN="RIGHT" |
| 723 | VALIGN="TOP" |
| 724 | ><TT |
| 725 | CLASS="PARAMETER" |
| 726 | ><I |
| 727 | >method</I |
| 728 | ></TT |
| 729 | > :</TD |
| 730 | ><TD |
| 731 | WIDTH="80%" |
| 732 | ALIGN="LEFT" |
| 733 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 734 | > the HTTP method to use</TD |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 735 | ></TR |
| 736 | ><TR |
| 737 | ><TD |
| 738 | WIDTH="20%" |
| 739 | ALIGN="RIGHT" |
| 740 | VALIGN="TOP" |
| 741 | ><TT |
| 742 | CLASS="PARAMETER" |
| 743 | ><I |
| 744 | >input</I |
| 745 | ></TT |
| 746 | > :</TD |
| 747 | ><TD |
| 748 | WIDTH="80%" |
| 749 | ALIGN="LEFT" |
| 750 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 751 | > the input string if any</TD |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 752 | ></TR |
| 753 | ><TR |
| 754 | ><TD |
| 755 | WIDTH="20%" |
| 756 | ALIGN="RIGHT" |
| 757 | VALIGN="TOP" |
| 758 | ><TT |
| 759 | CLASS="PARAMETER" |
| 760 | ><I |
| 761 | >contentType</I |
| 762 | ></TT |
| 763 | > :</TD |
| 764 | ><TD |
| 765 | WIDTH="80%" |
| 766 | ALIGN="LEFT" |
| 767 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 768 | > the Content-Type information IN and OUT</TD |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 769 | ></TR |
| 770 | ><TR |
| 771 | ><TD |
| 772 | WIDTH="20%" |
| 773 | ALIGN="RIGHT" |
| 774 | VALIGN="TOP" |
| 775 | ><TT |
| 776 | CLASS="PARAMETER" |
| 777 | ><I |
| 778 | >redir</I |
| 779 | ></TT |
| 780 | > :</TD |
| 781 | ><TD |
| 782 | WIDTH="80%" |
| 783 | ALIGN="LEFT" |
| 784 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 785 | > the redirected URL OUT</TD |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 786 | ></TR |
| 787 | ><TR |
| 788 | ><TD |
| 789 | WIDTH="20%" |
| 790 | ALIGN="RIGHT" |
| 791 | VALIGN="TOP" |
| 792 | ><TT |
| 793 | CLASS="PARAMETER" |
| 794 | ><I |
| 795 | >headers</I |
| 796 | ></TT |
| 797 | > :</TD |
| 798 | ><TD |
| 799 | WIDTH="80%" |
| 800 | ALIGN="LEFT" |
| 801 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 802 | > the extra headers</TD |
Daniel Veillard | f012a64 | 2001-07-23 19:10:52 +0000 | [diff] [blame] | 803 | ></TR |
| 804 | ><TR |
| 805 | ><TD |
| 806 | WIDTH="20%" |
| 807 | ALIGN="RIGHT" |
| 808 | VALIGN="TOP" |
| 809 | ><TT |
| 810 | CLASS="PARAMETER" |
| 811 | ><I |
| 812 | >ilen</I |
| 813 | ></TT |
| 814 | > :</TD |
| 815 | ><TD |
| 816 | WIDTH="80%" |
| 817 | ALIGN="LEFT" |
| 818 | VALIGN="TOP" |
| 819 | > </TD |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 820 | ></TR |
| 821 | ></TBODY |
| 822 | ></TABLE |
| 823 | ><P |
| 824 | ></P |
| 825 | ></DIV |
| 826 | ></DIV |
| 827 | ><HR><DIV |
| 828 | CLASS="REFSECT2" |
| 829 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 830 | NAME="AEN17079" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 831 | ></A |
| 832 | ><H3 |
| 833 | ><A |
| 834 | NAME="XMLNANOHTTPOPEN" |
| 835 | ></A |
| 836 | >xmlNanoHTTPOpen ()</H3 |
| 837 | ><TABLE |
| 838 | BORDER="0" |
| 839 | BGCOLOR="#D6E8FF" |
| 840 | WIDTH="100%" |
| 841 | CELLPADDING="6" |
| 842 | ><TR |
| 843 | ><TD |
| 844 | ><PRE |
| 845 | CLASS="PROGRAMLISTING" |
| 846 | >void* xmlNanoHTTPOpen (const char *URL, |
| 847 | char **contentType);</PRE |
| 848 | ></TD |
| 849 | ></TR |
| 850 | ></TABLE |
| 851 | ><P |
| 852 | >This function try to open a connection to the indicated resource |
| 853 | via HTTP GET.</P |
| 854 | ><P |
| 855 | ></P |
| 856 | ><DIV |
| 857 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 858 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 859 | NAME="AEN17085" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 860 | ></A |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 861 | ><P |
| 862 | ></P |
| 863 | ><TABLE |
| 864 | BORDER="0" |
| 865 | WIDTH="100%" |
| 866 | BGCOLOR="#FFD0D0" |
| 867 | CELLSPACING="0" |
| 868 | CELLPADDING="4" |
| 869 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 870 | ><TBODY |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 871 | ><TR |
| 872 | ><TD |
| 873 | WIDTH="20%" |
| 874 | ALIGN="RIGHT" |
| 875 | VALIGN="TOP" |
| 876 | ><TT |
| 877 | CLASS="PARAMETER" |
| 878 | ><I |
| 879 | >URL</I |
| 880 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 881 | > :</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 882 | ><TD |
| 883 | WIDTH="80%" |
| 884 | ALIGN="LEFT" |
| 885 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 886 | > The URL to load</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 887 | ></TR |
| 888 | ><TR |
| 889 | ><TD |
| 890 | WIDTH="20%" |
| 891 | ALIGN="RIGHT" |
| 892 | VALIGN="TOP" |
| 893 | ><TT |
| 894 | CLASS="PARAMETER" |
| 895 | ><I |
| 896 | >contentType</I |
| 897 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 898 | > :</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 899 | ><TD |
| 900 | WIDTH="80%" |
| 901 | ALIGN="LEFT" |
| 902 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 903 | > if available the Content-Type information will be |
| 904 | returned at that location</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 905 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 906 | ></TBODY |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 907 | ></TABLE |
| 908 | ><P |
| 909 | ></P |
| 910 | ></DIV |
| 911 | ></DIV |
| 912 | ><HR><DIV |
| 913 | CLASS="REFSECT2" |
| 914 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 915 | NAME="AEN17098" |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 916 | ></A |
| 917 | ><H3 |
| 918 | ><A |
| 919 | NAME="XMLNANOHTTPOPENREDIR" |
| 920 | ></A |
| 921 | >xmlNanoHTTPOpenRedir ()</H3 |
| 922 | ><TABLE |
| 923 | BORDER="0" |
| 924 | BGCOLOR="#D6E8FF" |
| 925 | WIDTH="100%" |
| 926 | CELLPADDING="6" |
| 927 | ><TR |
| 928 | ><TD |
| 929 | ><PRE |
| 930 | CLASS="PROGRAMLISTING" |
| 931 | >void* xmlNanoHTTPOpenRedir (const char *URL, |
| 932 | char **contentType, |
| 933 | char **redir);</PRE |
| 934 | ></TD |
| 935 | ></TR |
| 936 | ></TABLE |
| 937 | ><P |
| 938 | >This function try to open a connection to the indicated resource |
| 939 | via HTTP GET.</P |
| 940 | ><P |
| 941 | ></P |
| 942 | ><DIV |
| 943 | CLASS="INFORMALTABLE" |
| 944 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 945 | NAME="AEN17104" |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 946 | ></A |
| 947 | ><P |
| 948 | ></P |
| 949 | ><TABLE |
| 950 | BORDER="0" |
| 951 | WIDTH="100%" |
| 952 | BGCOLOR="#FFD0D0" |
| 953 | CELLSPACING="0" |
| 954 | CELLPADDING="4" |
| 955 | CLASS="CALSTABLE" |
| 956 | ><TBODY |
| 957 | ><TR |
| 958 | ><TD |
| 959 | WIDTH="20%" |
| 960 | ALIGN="RIGHT" |
| 961 | VALIGN="TOP" |
| 962 | ><TT |
| 963 | CLASS="PARAMETER" |
| 964 | ><I |
| 965 | >URL</I |
| 966 | ></TT |
| 967 | > :</TD |
| 968 | ><TD |
| 969 | WIDTH="80%" |
| 970 | ALIGN="LEFT" |
| 971 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 972 | > The URL to load</TD |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 973 | ></TR |
| 974 | ><TR |
| 975 | ><TD |
| 976 | WIDTH="20%" |
| 977 | ALIGN="RIGHT" |
| 978 | VALIGN="TOP" |
| 979 | ><TT |
| 980 | CLASS="PARAMETER" |
| 981 | ><I |
| 982 | >contentType</I |
| 983 | ></TT |
| 984 | > :</TD |
| 985 | ><TD |
| 986 | WIDTH="80%" |
| 987 | ALIGN="LEFT" |
| 988 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 989 | > if available the Content-Type information will be |
| 990 | returned at that location</TD |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 991 | ></TR |
| 992 | ><TR |
| 993 | ><TD |
| 994 | WIDTH="20%" |
| 995 | ALIGN="RIGHT" |
| 996 | VALIGN="TOP" |
| 997 | ><TT |
| 998 | CLASS="PARAMETER" |
| 999 | ><I |
| 1000 | >redir</I |
| 1001 | ></TT |
| 1002 | > :</TD |
| 1003 | ><TD |
| 1004 | WIDTH="80%" |
| 1005 | ALIGN="LEFT" |
| 1006 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 1007 | > if availble the redirected URL will be returned</TD |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 1008 | ></TR |
| 1009 | ></TBODY |
| 1010 | ></TABLE |
| 1011 | ><P |
| 1012 | ></P |
| 1013 | ></DIV |
| 1014 | ></DIV |
| 1015 | ><HR><DIV |
| 1016 | CLASS="REFSECT2" |
| 1017 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 1018 | NAME="AEN17121" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1019 | ></A |
| 1020 | ><H3 |
| 1021 | ><A |
| 1022 | NAME="XMLNANOHTTPRETURNCODE" |
| 1023 | ></A |
| 1024 | >xmlNanoHTTPReturnCode ()</H3 |
| 1025 | ><TABLE |
| 1026 | BORDER="0" |
| 1027 | BGCOLOR="#D6E8FF" |
| 1028 | WIDTH="100%" |
| 1029 | CELLPADDING="6" |
| 1030 | ><TR |
| 1031 | ><TD |
| 1032 | ><PRE |
| 1033 | CLASS="PROGRAMLISTING" |
| 1034 | >int xmlNanoHTTPReturnCode (void *ctx);</PRE |
| 1035 | ></TD |
| 1036 | ></TR |
| 1037 | ></TABLE |
| 1038 | ><P |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 1039 | >Get the latest HTTP return code received</P |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1040 | ><P |
| 1041 | ></P |
| 1042 | ><DIV |
| 1043 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1044 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 1045 | NAME="AEN17127" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1046 | ></A |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1047 | ><P |
| 1048 | ></P |
| 1049 | ><TABLE |
| 1050 | BORDER="0" |
| 1051 | WIDTH="100%" |
| 1052 | BGCOLOR="#FFD0D0" |
| 1053 | CELLSPACING="0" |
| 1054 | CELLPADDING="4" |
| 1055 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1056 | ><TBODY |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1057 | ><TR |
| 1058 | ><TD |
| 1059 | WIDTH="20%" |
| 1060 | ALIGN="RIGHT" |
| 1061 | VALIGN="TOP" |
| 1062 | ><TT |
| 1063 | CLASS="PARAMETER" |
| 1064 | ><I |
| 1065 | >ctx</I |
| 1066 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1067 | > :</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1068 | ><TD |
| 1069 | WIDTH="80%" |
| 1070 | ALIGN="LEFT" |
| 1071 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 1072 | > the HTTP context</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1073 | ></TR |
| 1074 | ><TR |
| 1075 | ><TD |
| 1076 | WIDTH="20%" |
| 1077 | ALIGN="RIGHT" |
| 1078 | VALIGN="TOP" |
| 1079 | ><I |
| 1080 | CLASS="EMPHASIS" |
| 1081 | >Returns</I |
| 1082 | > :</TD |
| 1083 | ><TD |
| 1084 | WIDTH="80%" |
| 1085 | ALIGN="LEFT" |
| 1086 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 1087 | >the HTTP return code for the request.</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1088 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1089 | ></TBODY |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1090 | ></TABLE |
| 1091 | ><P |
| 1092 | ></P |
| 1093 | ></DIV |
| 1094 | ></DIV |
| 1095 | ><HR><DIV |
| 1096 | CLASS="REFSECT2" |
| 1097 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 1098 | NAME="AEN17140" |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 1099 | ></A |
| 1100 | ><H3 |
| 1101 | ><A |
| 1102 | NAME="XMLNANOHTTPAUTHHEADER" |
| 1103 | ></A |
| 1104 | >xmlNanoHTTPAuthHeader ()</H3 |
| 1105 | ><TABLE |
| 1106 | BORDER="0" |
| 1107 | BGCOLOR="#D6E8FF" |
| 1108 | WIDTH="100%" |
| 1109 | CELLPADDING="6" |
| 1110 | ><TR |
| 1111 | ><TD |
| 1112 | ><PRE |
| 1113 | CLASS="PROGRAMLISTING" |
| 1114 | >const char* xmlNanoHTTPAuthHeader (void *ctx);</PRE |
| 1115 | ></TD |
| 1116 | ></TR |
| 1117 | ></TABLE |
| 1118 | ><P |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 1119 | >Get the authentication header of an HTTP context</P |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 1120 | ><P |
| 1121 | ></P |
| 1122 | ><DIV |
| 1123 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1124 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 1125 | NAME="AEN17146" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1126 | ></A |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 1127 | ><P |
| 1128 | ></P |
| 1129 | ><TABLE |
| 1130 | BORDER="0" |
| 1131 | WIDTH="100%" |
| 1132 | BGCOLOR="#FFD0D0" |
| 1133 | CELLSPACING="0" |
| 1134 | CELLPADDING="4" |
| 1135 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1136 | ><TBODY |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 1137 | ><TR |
| 1138 | ><TD |
| 1139 | WIDTH="20%" |
| 1140 | ALIGN="RIGHT" |
| 1141 | VALIGN="TOP" |
| 1142 | ><TT |
| 1143 | CLASS="PARAMETER" |
| 1144 | ><I |
| 1145 | >ctx</I |
| 1146 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1147 | > :</TD |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 1148 | ><TD |
| 1149 | WIDTH="80%" |
| 1150 | ALIGN="LEFT" |
| 1151 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 1152 | > the HTTP context</TD |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 1153 | ></TR |
| 1154 | ><TR |
| 1155 | ><TD |
| 1156 | WIDTH="20%" |
| 1157 | ALIGN="RIGHT" |
| 1158 | VALIGN="TOP" |
| 1159 | ><I |
| 1160 | CLASS="EMPHASIS" |
| 1161 | >Returns</I |
| 1162 | > :</TD |
| 1163 | ><TD |
| 1164 | WIDTH="80%" |
| 1165 | ALIGN="LEFT" |
| 1166 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 1167 | >the stashed value of the WWW-Authenticate or Proxy-Authenticate |
| 1168 | header.</TD |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 1169 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1170 | ></TBODY |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 1171 | ></TABLE |
| 1172 | ><P |
| 1173 | ></P |
| 1174 | ></DIV |
| 1175 | ></DIV |
| 1176 | ><HR><DIV |
| 1177 | CLASS="REFSECT2" |
| 1178 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 1179 | NAME="AEN17159" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1180 | ></A |
| 1181 | ><H3 |
| 1182 | ><A |
| 1183 | NAME="XMLNANOHTTPREAD" |
| 1184 | ></A |
| 1185 | >xmlNanoHTTPRead ()</H3 |
| 1186 | ><TABLE |
| 1187 | BORDER="0" |
| 1188 | BGCOLOR="#D6E8FF" |
| 1189 | WIDTH="100%" |
| 1190 | CELLPADDING="6" |
| 1191 | ><TR |
| 1192 | ><TD |
| 1193 | ><PRE |
| 1194 | CLASS="PROGRAMLISTING" |
| 1195 | >int xmlNanoHTTPRead (void *ctx, |
| 1196 | void *dest, |
| 1197 | int len);</PRE |
| 1198 | ></TD |
| 1199 | ></TR |
| 1200 | ></TABLE |
| 1201 | ><P |
| 1202 | >This function tries to read <TT |
| 1203 | CLASS="PARAMETER" |
| 1204 | ><I |
| 1205 | >len</I |
| 1206 | ></TT |
| 1207 | > bytes from the existing HTTP connection |
| 1208 | and saves them in <TT |
| 1209 | CLASS="PARAMETER" |
| 1210 | ><I |
| 1211 | >dest</I |
| 1212 | ></TT |
| 1213 | >. This is a blocking call.</P |
| 1214 | ><P |
| 1215 | ></P |
| 1216 | ><DIV |
| 1217 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1218 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 1219 | NAME="AEN17167" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1220 | ></A |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1221 | ><P |
| 1222 | ></P |
| 1223 | ><TABLE |
| 1224 | BORDER="0" |
| 1225 | WIDTH="100%" |
| 1226 | BGCOLOR="#FFD0D0" |
| 1227 | CELLSPACING="0" |
| 1228 | CELLPADDING="4" |
| 1229 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1230 | ><TBODY |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1231 | ><TR |
| 1232 | ><TD |
| 1233 | WIDTH="20%" |
| 1234 | ALIGN="RIGHT" |
| 1235 | VALIGN="TOP" |
| 1236 | ><TT |
| 1237 | CLASS="PARAMETER" |
| 1238 | ><I |
| 1239 | >ctx</I |
| 1240 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1241 | > :</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1242 | ><TD |
| 1243 | WIDTH="80%" |
| 1244 | ALIGN="LEFT" |
| 1245 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 1246 | > the HTTP context</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1247 | ></TR |
| 1248 | ><TR |
| 1249 | ><TD |
| 1250 | WIDTH="20%" |
| 1251 | ALIGN="RIGHT" |
| 1252 | VALIGN="TOP" |
| 1253 | ><TT |
| 1254 | CLASS="PARAMETER" |
| 1255 | ><I |
| 1256 | >dest</I |
| 1257 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1258 | > :</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1259 | ><TD |
| 1260 | WIDTH="80%" |
| 1261 | ALIGN="LEFT" |
| 1262 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 1263 | > a buffer</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1264 | ></TR |
| 1265 | ><TR |
| 1266 | ><TD |
| 1267 | WIDTH="20%" |
| 1268 | ALIGN="RIGHT" |
| 1269 | VALIGN="TOP" |
| 1270 | ><TT |
| 1271 | CLASS="PARAMETER" |
| 1272 | ><I |
| 1273 | >len</I |
| 1274 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1275 | > :</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1276 | ><TD |
| 1277 | WIDTH="80%" |
| 1278 | ALIGN="LEFT" |
| 1279 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 1280 | > the buffer length</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1281 | ></TR |
| 1282 | ><TR |
| 1283 | ><TD |
| 1284 | WIDTH="20%" |
| 1285 | ALIGN="RIGHT" |
| 1286 | VALIGN="TOP" |
| 1287 | ><I |
| 1288 | CLASS="EMPHASIS" |
| 1289 | >Returns</I |
| 1290 | > :</TD |
| 1291 | ><TD |
| 1292 | WIDTH="80%" |
| 1293 | ALIGN="LEFT" |
| 1294 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 1295 | >the number of byte read. 0 is an indication of an end of connection. |
| 1296 | -1 indicates a parameter error.</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1297 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1298 | ></TBODY |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1299 | ></TABLE |
| 1300 | ><P |
| 1301 | ></P |
| 1302 | ></DIV |
| 1303 | ></DIV |
| 1304 | ><HR><DIV |
| 1305 | CLASS="REFSECT2" |
| 1306 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 1307 | NAME="AEN17188" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1308 | ></A |
| 1309 | ><H3 |
| 1310 | ><A |
| 1311 | NAME="XMLNANOHTTPSAVE" |
| 1312 | ></A |
| 1313 | >xmlNanoHTTPSave ()</H3 |
| 1314 | ><TABLE |
| 1315 | BORDER="0" |
| 1316 | BGCOLOR="#D6E8FF" |
| 1317 | WIDTH="100%" |
| 1318 | CELLPADDING="6" |
| 1319 | ><TR |
| 1320 | ><TD |
| 1321 | ><PRE |
| 1322 | CLASS="PROGRAMLISTING" |
| 1323 | >int xmlNanoHTTPSave (void *ctxt, |
| 1324 | const char *filename);</PRE |
| 1325 | ></TD |
| 1326 | ></TR |
| 1327 | ></TABLE |
| 1328 | ><P |
| 1329 | >This function saves the output of the HTTP transaction to a file |
| 1330 | It closes and free the context at the end</P |
| 1331 | ><P |
| 1332 | ></P |
| 1333 | ><DIV |
| 1334 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1335 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 1336 | NAME="AEN17194" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1337 | ></A |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1338 | ><P |
| 1339 | ></P |
| 1340 | ><TABLE |
| 1341 | BORDER="0" |
| 1342 | WIDTH="100%" |
| 1343 | BGCOLOR="#FFD0D0" |
| 1344 | CELLSPACING="0" |
| 1345 | CELLPADDING="4" |
| 1346 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1347 | ><TBODY |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1348 | ><TR |
| 1349 | ><TD |
| 1350 | WIDTH="20%" |
| 1351 | ALIGN="RIGHT" |
| 1352 | VALIGN="TOP" |
| 1353 | ><TT |
| 1354 | CLASS="PARAMETER" |
| 1355 | ><I |
| 1356 | >ctxt</I |
| 1357 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1358 | > :</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1359 | ><TD |
| 1360 | WIDTH="80%" |
| 1361 | ALIGN="LEFT" |
| 1362 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 1363 | > the HTTP context</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1364 | ></TR |
| 1365 | ><TR |
| 1366 | ><TD |
| 1367 | WIDTH="20%" |
| 1368 | ALIGN="RIGHT" |
| 1369 | VALIGN="TOP" |
| 1370 | ><TT |
| 1371 | CLASS="PARAMETER" |
| 1372 | ><I |
| 1373 | >filename</I |
| 1374 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1375 | > :</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1376 | ><TD |
| 1377 | WIDTH="80%" |
| 1378 | ALIGN="LEFT" |
| 1379 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 1380 | > the filename where the content should be saved</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1381 | ></TR |
| 1382 | ><TR |
| 1383 | ><TD |
| 1384 | WIDTH="20%" |
| 1385 | ALIGN="RIGHT" |
| 1386 | VALIGN="TOP" |
| 1387 | ><I |
| 1388 | CLASS="EMPHASIS" |
| 1389 | >Returns</I |
| 1390 | > :</TD |
| 1391 | ><TD |
| 1392 | WIDTH="80%" |
| 1393 | ALIGN="LEFT" |
| 1394 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 1395 | >-1 in case of failure, 0 incase of success.</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1396 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1397 | ></TBODY |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1398 | ></TABLE |
| 1399 | ><P |
| 1400 | ></P |
| 1401 | ></DIV |
| 1402 | ></DIV |
| 1403 | ><HR><DIV |
| 1404 | CLASS="REFSECT2" |
| 1405 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 1406 | NAME="AEN17211" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1407 | ></A |
| 1408 | ><H3 |
| 1409 | ><A |
| 1410 | NAME="XMLNANOHTTPCLOSE" |
| 1411 | ></A |
| 1412 | >xmlNanoHTTPClose ()</H3 |
| 1413 | ><TABLE |
| 1414 | BORDER="0" |
| 1415 | BGCOLOR="#D6E8FF" |
| 1416 | WIDTH="100%" |
| 1417 | CELLPADDING="6" |
| 1418 | ><TR |
| 1419 | ><TD |
| 1420 | ><PRE |
| 1421 | CLASS="PROGRAMLISTING" |
| 1422 | >void xmlNanoHTTPClose (void *ctx);</PRE |
| 1423 | ></TD |
| 1424 | ></TR |
| 1425 | ></TABLE |
| 1426 | ><P |
| 1427 | >This function closes an HTTP context, it ends up the connection and |
| 1428 | free all data related to it.</P |
| 1429 | ><P |
| 1430 | ></P |
| 1431 | ><DIV |
| 1432 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1433 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 1434 | NAME="AEN17217" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1435 | ></A |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1436 | ><P |
| 1437 | ></P |
| 1438 | ><TABLE |
| 1439 | BORDER="0" |
| 1440 | WIDTH="100%" |
| 1441 | BGCOLOR="#FFD0D0" |
| 1442 | CELLSPACING="0" |
| 1443 | CELLPADDING="4" |
| 1444 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1445 | ><TBODY |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1446 | ><TR |
| 1447 | ><TD |
| 1448 | WIDTH="20%" |
| 1449 | ALIGN="RIGHT" |
| 1450 | VALIGN="TOP" |
| 1451 | ><TT |
| 1452 | CLASS="PARAMETER" |
| 1453 | ><I |
| 1454 | >ctx</I |
| 1455 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1456 | > :</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1457 | ><TD |
| 1458 | WIDTH="80%" |
| 1459 | ALIGN="LEFT" |
| 1460 | VALIGN="TOP" |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 1461 | > the HTTP context</TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1462 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1463 | ></TBODY |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1464 | ></TABLE |
| 1465 | ><P |
| 1466 | ></P |
| 1467 | ></DIV |
| 1468 | ></DIV |
| 1469 | ></DIV |
| 1470 | ><DIV |
| 1471 | CLASS="NAVFOOTER" |
| 1472 | ><BR |
| 1473 | CLEAR="all"><BR><TABLE |
| 1474 | WIDTH="100%" |
| 1475 | BORDER="0" |
| 1476 | BGCOLOR="#000000" |
| 1477 | CELLPADDING="1" |
| 1478 | CELLSPACING="0" |
| 1479 | ><TR |
| 1480 | ><TD |
| 1481 | WIDTH="25%" |
| 1482 | BGCOLOR="#C00000" |
| 1483 | ALIGN="left" |
| 1484 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 1485 | HREF="libxml-xinclude.html" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1486 | ><FONT |
| 1487 | COLOR="#FFFFFF" |
| 1488 | SIZE="3" |
| 1489 | ><B |
| 1490 | ><<< Previous Page</B |
| 1491 | ></FONT |
| 1492 | ></A |
| 1493 | ></TD |
| 1494 | ><TD |
| 1495 | WIDTH="25%" |
| 1496 | BGCOLOR="#0000C0" |
| 1497 | ALIGN="center" |
| 1498 | ><FONT |
| 1499 | COLOR="#FFFFFF" |
| 1500 | SIZE="3" |
| 1501 | ><B |
| 1502 | ><A |
| 1503 | HREF="book1.html" |
| 1504 | ><FONT |
| 1505 | COLOR="#FFFFFF" |
| 1506 | SIZE="3" |
| 1507 | ><B |
| 1508 | >Home</B |
| 1509 | ></FONT |
| 1510 | ></A |
| 1511 | ></B |
| 1512 | ></FONT |
| 1513 | ></TD |
| 1514 | ><TD |
| 1515 | WIDTH="25%" |
| 1516 | BGCOLOR="#00C000" |
| 1517 | ALIGN="center" |
| 1518 | ><FONT |
| 1519 | COLOR="#FFFFFF" |
| 1520 | SIZE="3" |
| 1521 | ><B |
| 1522 | ><A |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 1523 | HREF="libxml-lib.html" |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1524 | ><FONT |
| 1525 | COLOR="#FFFFFF" |
| 1526 | SIZE="3" |
| 1527 | ><B |
| 1528 | >Up</B |
| 1529 | ></FONT |
| 1530 | ></A |
| 1531 | ></B |
| 1532 | ></FONT |
| 1533 | ></TD |
| 1534 | ><TD |
| 1535 | WIDTH="25%" |
| 1536 | BGCOLOR="#C00000" |
| 1537 | ALIGN="right" |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 1538 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 1539 | HREF="libxml-nanoftp.html" |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 1540 | ><FONT |
| 1541 | COLOR="#FFFFFF" |
| 1542 | SIZE="3" |
| 1543 | ><B |
| 1544 | >Next Page >>></B |
| 1545 | ></FONT |
| 1546 | ></A |
| 1547 | ></TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1548 | ></TR |
| 1549 | ><TR |
| 1550 | ><TD |
| 1551 | COLSPAN="2" |
| 1552 | ALIGN="left" |
| 1553 | ><FONT |
| 1554 | COLOR="#FFFFFF" |
| 1555 | SIZE="3" |
| 1556 | ><B |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 1557 | >xinclude</B |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1558 | ></FONT |
| 1559 | ></TD |
| 1560 | ><TD |
| 1561 | COLSPAN="2" |
| 1562 | ALIGN="right" |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 1563 | ><FONT |
| 1564 | COLOR="#FFFFFF" |
| 1565 | SIZE="3" |
| 1566 | ><B |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 1567 | >nanoftp</B |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 1568 | ></FONT |
| 1569 | ></TD |
Daniel Veillard | 7c1206f | 1999-10-14 09:10:25 +0000 | [diff] [blame] | 1570 | ></TR |
| 1571 | ></TABLE |
| 1572 | ></DIV |
| 1573 | ></BODY |
| 1574 | ></HTML |
| 1575 | > |