blob: 03619d9c86b2df7b0e402e5c6c969bf1d5c0abdb [file] [log] [blame]
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001<HTML
2><HEAD
3><TITLE
4>nanohttp</TITLE
5><META
6NAME="GENERATOR"
Daniel Veillardf3a73582000-01-05 14:58:39 +00007CONTENT="Modular DocBook HTML Stylesheet Version 1.33"><LINK
Daniel Veillard7c1206f1999-10-14 09:10:25 +00008REL="HOME"
9TITLE="Gnome XML Library Reference Manual"
10HREF="book1.html"><LINK
11REL="UP"
Daniel Veillard35008381999-10-25 13:15:52 +000012TITLE="Libxml Library Reference"
13HREF="libxml-lib.html"><LINK
Daniel Veillard7c1206f1999-10-14 09:10:25 +000014REL="PREVIOUS"
Daniel Veillard35008381999-10-25 13:15:52 +000015TITLE="xpath"
16HREF="gnome-xml-xpath.html"><LINK
17REL="NEXT"
Daniel Veillardaeea04f2000-01-25 19:27:27 +000018TITLE="nanoftp"
19HREF="gnome-xml-nanoftp.html"></HEAD
Daniel Veillard7c1206f1999-10-14 09:10:25 +000020><BODY
21BGCOLOR="#FFFFFF"
22TEXT="#000000"
23><DIV
24CLASS="NAVHEADER"
25><TABLE
26WIDTH="100%"
27BORDER="0"
28BGCOLOR="#000000"
29CELLPADDING="1"
30CELLSPACING="0"
31><TR
32><TH
33COLSPAN="4"
34ALIGN="center"
35><FONT
36COLOR="#FFFFFF"
37SIZE="5"
38>Gnome XML Library Reference Manual</FONT
39></TH
40></TR
41><TR
42><TD
43WIDTH="25%"
44BGCOLOR="#C00000"
45ALIGN="left"
46><A
Daniel Veillard35008381999-10-25 13:15:52 +000047HREF="gnome-xml-xpath.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +000048><FONT
49COLOR="#FFFFFF"
50SIZE="3"
51><B
52>&#60;&#60;&#60; Previous Page</B
53></FONT
54></A
55></TD
56><TD
57WIDTH="25%"
58BGCOLOR="#0000C0"
59ALIGN="center"
60><FONT
61COLOR="#FFFFFF"
62SIZE="3"
63><B
64><A
65HREF="book1.html"
66><FONT
67COLOR="#FFFFFF"
68SIZE="3"
69><B
70>Home</B
71></FONT
72></A
73></B
74></FONT
75></TD
76><TD
77WIDTH="25%"
78BGCOLOR="#00C000"
79ALIGN="center"
80><FONT
81COLOR="#FFFFFF"
82SIZE="3"
83><B
84><A
Daniel Veillard35008381999-10-25 13:15:52 +000085HREF="libxml-lib.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +000086><FONT
87COLOR="#FFFFFF"
88SIZE="3"
89><B
90>Up</B
91></FONT
92></A
93></B
94></FONT
95></TD
96><TD
97WIDTH="25%"
98BGCOLOR="#C00000"
99ALIGN="right"
Daniel Veillard35008381999-10-25 13:15:52 +0000100><A
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000101HREF="gnome-xml-nanoftp.html"
Daniel Veillard35008381999-10-25 13:15:52 +0000102><FONT
103COLOR="#FFFFFF"
104SIZE="3"
105><B
106>Next Page &#62;&#62;&#62;</B
107></FONT
108></A
109></TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000110></TR
111></TABLE
112></DIV
113><H1
Daniel Veillardf3a73582000-01-05 14:58:39 +0000114>nanohttp</H1
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000115><DIV
116CLASS="REFNAMEDIV"
117><A
Daniel Veillard0142b842000-01-14 14:45:24 +0000118NAME="AEN9104"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000119></A
120><H2
121>Name</H2
Daniel Veillardf3a73582000-01-05 14:58:39 +0000122>nanohttp &#8212; </DIV
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000123><DIV
124CLASS="REFSYNOPSISDIV"
125><A
Daniel Veillard0142b842000-01-14 14:45:24 +0000126NAME="AEN9107"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000127></A
128><H2
129>Synopsis</H2
130><TABLE
131BORDER="0"
132BGCOLOR="#D6E8FF"
133WIDTH="100%"
134CELLPADDING="6"
135><TR
136><TD
137><PRE
138CLASS="SYNOPSIS"
139>&#13;
140
141int <A
142HREF="gnome-xml-nanohttp.html#XMLNANOHTTPFETCH"
143>xmlNanoHTTPFetch</A
144> (const char *URL,
Daniel Veillard35008381999-10-25 13:15:52 +0000145 const char *filename,
146 char **contentType);
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000147void* <A
148HREF="gnome-xml-nanohttp.html#XMLNANOHTTPMETHOD"
149>xmlNanoHTTPMethod</A
150> (const char *URL,
151 const char *method,
152 const char *input,
153 char **contentType,
154 const char *headers);
155void* <A
156HREF="gnome-xml-nanohttp.html#XMLNANOHTTPOPEN"
157>xmlNanoHTTPOpen</A
158> (const char *URL,
159 char **contentType);
160int <A
161HREF="gnome-xml-nanohttp.html#XMLNANOHTTPRETURNCODE"
162>xmlNanoHTTPReturnCode</A
163> (void *ctx);
164int <A
165HREF="gnome-xml-nanohttp.html#XMLNANOHTTPREAD"
166>xmlNanoHTTPRead</A
167> (void *ctx,
168 void *dest,
169 int len);
170int <A
171HREF="gnome-xml-nanohttp.html#XMLNANOHTTPSAVE"
172>xmlNanoHTTPSave</A
173> (void *ctxt,
174 const char *filename);
175void <A
176HREF="gnome-xml-nanohttp.html#XMLNANOHTTPCLOSE"
177>xmlNanoHTTPClose</A
178> (void *ctx);</PRE
179></TD
180></TR
181></TABLE
182></DIV
183><DIV
184CLASS="REFSECT1"
185><A
Daniel Veillard0142b842000-01-14 14:45:24 +0000186NAME="AEN9117"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000187></A
188><H2
189>Description</H2
190><P
191></P
192></DIV
193><DIV
194CLASS="REFSECT1"
195><A
Daniel Veillard0142b842000-01-14 14:45:24 +0000196NAME="AEN9120"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000197></A
198><H2
199>Details</H2
200><DIV
201CLASS="REFSECT2"
202><A
Daniel Veillard0142b842000-01-14 14:45:24 +0000203NAME="AEN9122"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000204></A
205><H3
206><A
207NAME="XMLNANOHTTPFETCH"
208></A
209>xmlNanoHTTPFetch ()</H3
210><TABLE
211BORDER="0"
212BGCOLOR="#D6E8FF"
213WIDTH="100%"
214CELLPADDING="6"
215><TR
216><TD
217><PRE
218CLASS="PROGRAMLISTING"
219>int xmlNanoHTTPFetch (const char *URL,
Daniel Veillard35008381999-10-25 13:15:52 +0000220 const char *filename,
221 char **contentType);</PRE
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000222></TD
223></TR
224></TABLE
225><P
226>This function try to fetch the indicated resource via HTTP GET
227and save it's content in the file.</P
228><P
229></P
230><DIV
231CLASS="INFORMALTABLE"
232><P
233></P
234><TABLE
235BORDER="0"
236WIDTH="100%"
237BGCOLOR="#FFD0D0"
238CELLSPACING="0"
239CELLPADDING="4"
240CLASS="CALSTABLE"
241><TR
242><TD
243WIDTH="20%"
244ALIGN="RIGHT"
245VALIGN="TOP"
246><TT
247CLASS="PARAMETER"
248><I
249>URL</I
250></TT
251>&nbsp;:</TD
252><TD
253WIDTH="80%"
254ALIGN="LEFT"
255VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000256> The URL to load</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000257></TR
258><TR
259><TD
260WIDTH="20%"
261ALIGN="RIGHT"
262VALIGN="TOP"
263><TT
264CLASS="PARAMETER"
265><I
266>filename</I
267></TT
268>&nbsp;:</TD
269><TD
270WIDTH="80%"
271ALIGN="LEFT"
272VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000273> the filename where the content should be saved</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000274></TR
275><TR
276><TD
277WIDTH="20%"
278ALIGN="RIGHT"
279VALIGN="TOP"
Daniel Veillard35008381999-10-25 13:15:52 +0000280><TT
281CLASS="PARAMETER"
282><I
283>contentType</I
284></TT
285>&nbsp;:</TD
286><TD
287WIDTH="80%"
288ALIGN="LEFT"
289VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000290> if available the Content-Type information will be
291returned at that location</TD
Daniel Veillard35008381999-10-25 13:15:52 +0000292></TR
293><TR
294><TD
295WIDTH="20%"
296ALIGN="RIGHT"
297VALIGN="TOP"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000298><I
299CLASS="EMPHASIS"
300>Returns</I
301> :</TD
302><TD
303WIDTH="80%"
304ALIGN="LEFT"
305VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000306>-1 in case of failure, 0 incase of success. The contentType,
307if provided must be freed by the caller</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000308></TR
309></TABLE
310><P
311></P
312></DIV
313></DIV
314><HR><DIV
315CLASS="REFSECT2"
316><A
Daniel Veillard0142b842000-01-14 14:45:24 +0000317NAME="AEN9149"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000318></A
319><H3
320><A
321NAME="XMLNANOHTTPMETHOD"
322></A
323>xmlNanoHTTPMethod ()</H3
324><TABLE
325BORDER="0"
326BGCOLOR="#D6E8FF"
327WIDTH="100%"
328CELLPADDING="6"
329><TR
330><TD
331><PRE
332CLASS="PROGRAMLISTING"
333>void* xmlNanoHTTPMethod (const char *URL,
334 const char *method,
335 const char *input,
336 char **contentType,
337 const char *headers);</PRE
338></TD
339></TR
340></TABLE
341><P
342>This function try to open a connection to the indicated resource
343via HTTP using the given <TT
344CLASS="PARAMETER"
345><I
346>method</I
347></TT
348>, adding the given extra headers
349and the input buffer for the request content.</P
350><P
351></P
352><DIV
353CLASS="INFORMALTABLE"
354><P
355></P
356><TABLE
357BORDER="0"
358WIDTH="100%"
359BGCOLOR="#FFD0D0"
360CELLSPACING="0"
361CELLPADDING="4"
362CLASS="CALSTABLE"
363><TR
364><TD
365WIDTH="20%"
366ALIGN="RIGHT"
367VALIGN="TOP"
368><TT
369CLASS="PARAMETER"
370><I
371>URL</I
372></TT
373>&nbsp;:</TD
374><TD
375WIDTH="80%"
376ALIGN="LEFT"
377VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000378> The URL to load</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000379></TR
380><TR
381><TD
382WIDTH="20%"
383ALIGN="RIGHT"
384VALIGN="TOP"
385><TT
386CLASS="PARAMETER"
387><I
388>method</I
389></TT
390>&nbsp;:</TD
391><TD
392WIDTH="80%"
393ALIGN="LEFT"
394VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000395> the HTTP method to use</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000396></TR
397><TR
398><TD
399WIDTH="20%"
400ALIGN="RIGHT"
401VALIGN="TOP"
402><TT
403CLASS="PARAMETER"
404><I
405>input</I
406></TT
407>&nbsp;:</TD
408><TD
409WIDTH="80%"
410ALIGN="LEFT"
411VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000412> the input string if any</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000413></TR
414><TR
415><TD
416WIDTH="20%"
417ALIGN="RIGHT"
418VALIGN="TOP"
419><TT
420CLASS="PARAMETER"
421><I
422>contentType</I
423></TT
424>&nbsp;:</TD
425><TD
426WIDTH="80%"
427ALIGN="LEFT"
428VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000429> the Content-Type information IN and OUT</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000430></TR
431><TR
432><TD
433WIDTH="20%"
434ALIGN="RIGHT"
435VALIGN="TOP"
436><TT
437CLASS="PARAMETER"
438><I
439>headers</I
440></TT
441>&nbsp;:</TD
442><TD
443WIDTH="80%"
444ALIGN="LEFT"
445VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000446> the extra headers</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000447></TR
448></TABLE
449><P
450></P
451></DIV
452></DIV
453><HR><DIV
454CLASS="REFSECT2"
455><A
Daniel Veillard0142b842000-01-14 14:45:24 +0000456NAME="AEN9181"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000457></A
458><H3
459><A
460NAME="XMLNANOHTTPOPEN"
461></A
462>xmlNanoHTTPOpen ()</H3
463><TABLE
464BORDER="0"
465BGCOLOR="#D6E8FF"
466WIDTH="100%"
467CELLPADDING="6"
468><TR
469><TD
470><PRE
471CLASS="PROGRAMLISTING"
472>void* xmlNanoHTTPOpen (const char *URL,
473 char **contentType);</PRE
474></TD
475></TR
476></TABLE
477><P
478>This function try to open a connection to the indicated resource
479via HTTP GET.</P
480><P
481></P
482><DIV
483CLASS="INFORMALTABLE"
484><P
485></P
486><TABLE
487BORDER="0"
488WIDTH="100%"
489BGCOLOR="#FFD0D0"
490CELLSPACING="0"
491CELLPADDING="4"
492CLASS="CALSTABLE"
493><TR
494><TD
495WIDTH="20%"
496ALIGN="RIGHT"
497VALIGN="TOP"
498><TT
499CLASS="PARAMETER"
500><I
501>URL</I
502></TT
503>&nbsp;:</TD
504><TD
505WIDTH="80%"
506ALIGN="LEFT"
507VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000508> The URL to load</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000509></TR
510><TR
511><TD
512WIDTH="20%"
513ALIGN="RIGHT"
514VALIGN="TOP"
515><TT
516CLASS="PARAMETER"
517><I
518>contentType</I
519></TT
520>&nbsp;:</TD
521><TD
522WIDTH="80%"
523ALIGN="LEFT"
524VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000525> if available the Content-Type information will be
526returned at that location</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000527></TR
528></TABLE
529><P
530></P
531></DIV
532></DIV
533><HR><DIV
534CLASS="REFSECT2"
535><A
Daniel Veillard0142b842000-01-14 14:45:24 +0000536NAME="AEN9200"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000537></A
538><H3
539><A
540NAME="XMLNANOHTTPRETURNCODE"
541></A
542>xmlNanoHTTPReturnCode ()</H3
543><TABLE
544BORDER="0"
545BGCOLOR="#D6E8FF"
546WIDTH="100%"
547CELLPADDING="6"
548><TR
549><TD
550><PRE
551CLASS="PROGRAMLISTING"
552>int xmlNanoHTTPReturnCode (void *ctx);</PRE
553></TD
554></TR
555></TABLE
556><P
557></P
558><P
559></P
560><DIV
561CLASS="INFORMALTABLE"
562><P
563></P
564><TABLE
565BORDER="0"
566WIDTH="100%"
567BGCOLOR="#FFD0D0"
568CELLSPACING="0"
569CELLPADDING="4"
570CLASS="CALSTABLE"
571><TR
572><TD
573WIDTH="20%"
574ALIGN="RIGHT"
575VALIGN="TOP"
576><TT
577CLASS="PARAMETER"
578><I
579>ctx</I
580></TT
581>&nbsp;:</TD
582><TD
583WIDTH="80%"
584ALIGN="LEFT"
585VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000586> the HTTP context</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000587></TR
588><TR
589><TD
590WIDTH="20%"
591ALIGN="RIGHT"
592VALIGN="TOP"
593><I
594CLASS="EMPHASIS"
595>Returns</I
596> :</TD
597><TD
598WIDTH="80%"
599ALIGN="LEFT"
600VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000601>the HTTP return code for the request.</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000602></TR
603></TABLE
604><P
605></P
606></DIV
607></DIV
608><HR><DIV
609CLASS="REFSECT2"
610><A
Daniel Veillard0142b842000-01-14 14:45:24 +0000611NAME="AEN9219"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000612></A
613><H3
614><A
615NAME="XMLNANOHTTPREAD"
616></A
617>xmlNanoHTTPRead ()</H3
618><TABLE
619BORDER="0"
620BGCOLOR="#D6E8FF"
621WIDTH="100%"
622CELLPADDING="6"
623><TR
624><TD
625><PRE
626CLASS="PROGRAMLISTING"
627>int xmlNanoHTTPRead (void *ctx,
628 void *dest,
629 int len);</PRE
630></TD
631></TR
632></TABLE
633><P
634>This function tries to read <TT
635CLASS="PARAMETER"
636><I
637>len</I
638></TT
639> bytes from the existing HTTP connection
640and saves them in <TT
641CLASS="PARAMETER"
642><I
643>dest</I
644></TT
645>. This is a blocking call.</P
646><P
647></P
648><DIV
649CLASS="INFORMALTABLE"
650><P
651></P
652><TABLE
653BORDER="0"
654WIDTH="100%"
655BGCOLOR="#FFD0D0"
656CELLSPACING="0"
657CELLPADDING="4"
658CLASS="CALSTABLE"
659><TR
660><TD
661WIDTH="20%"
662ALIGN="RIGHT"
663VALIGN="TOP"
664><TT
665CLASS="PARAMETER"
666><I
667>ctx</I
668></TT
669>&nbsp;:</TD
670><TD
671WIDTH="80%"
672ALIGN="LEFT"
673VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000674> the HTTP context</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000675></TR
676><TR
677><TD
678WIDTH="20%"
679ALIGN="RIGHT"
680VALIGN="TOP"
681><TT
682CLASS="PARAMETER"
683><I
684>dest</I
685></TT
686>&nbsp;:</TD
687><TD
688WIDTH="80%"
689ALIGN="LEFT"
690VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000691> a buffer</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000692></TR
693><TR
694><TD
695WIDTH="20%"
696ALIGN="RIGHT"
697VALIGN="TOP"
698><TT
699CLASS="PARAMETER"
700><I
701>len</I
702></TT
703>&nbsp;:</TD
704><TD
705WIDTH="80%"
706ALIGN="LEFT"
707VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000708> the buffer length</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000709></TR
710><TR
711><TD
712WIDTH="20%"
713ALIGN="RIGHT"
714VALIGN="TOP"
715><I
716CLASS="EMPHASIS"
717>Returns</I
718> :</TD
719><TD
720WIDTH="80%"
721ALIGN="LEFT"
722VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000723>the number of byte read. 0 is an indication of an end of connection.
724-1 indicates a parameter error.</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000725></TR
726></TABLE
727><P
728></P
729></DIV
730></DIV
731><HR><DIV
732CLASS="REFSECT2"
733><A
Daniel Veillard0142b842000-01-14 14:45:24 +0000734NAME="AEN9248"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000735></A
736><H3
737><A
738NAME="XMLNANOHTTPSAVE"
739></A
740>xmlNanoHTTPSave ()</H3
741><TABLE
742BORDER="0"
743BGCOLOR="#D6E8FF"
744WIDTH="100%"
745CELLPADDING="6"
746><TR
747><TD
748><PRE
749CLASS="PROGRAMLISTING"
750>int xmlNanoHTTPSave (void *ctxt,
751 const char *filename);</PRE
752></TD
753></TR
754></TABLE
755><P
756>This function saves the output of the HTTP transaction to a file
757It closes and free the context at the end</P
758><P
759></P
760><DIV
761CLASS="INFORMALTABLE"
762><P
763></P
764><TABLE
765BORDER="0"
766WIDTH="100%"
767BGCOLOR="#FFD0D0"
768CELLSPACING="0"
769CELLPADDING="4"
770CLASS="CALSTABLE"
771><TR
772><TD
773WIDTH="20%"
774ALIGN="RIGHT"
775VALIGN="TOP"
776><TT
777CLASS="PARAMETER"
778><I
779>ctxt</I
780></TT
781>&nbsp;:</TD
782><TD
783WIDTH="80%"
784ALIGN="LEFT"
785VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000786> the HTTP context</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000787></TR
788><TR
789><TD
790WIDTH="20%"
791ALIGN="RIGHT"
792VALIGN="TOP"
793><TT
794CLASS="PARAMETER"
795><I
796>filename</I
797></TT
798>&nbsp;:</TD
799><TD
800WIDTH="80%"
801ALIGN="LEFT"
802VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000803> the filename where the content should be saved</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000804></TR
805><TR
806><TD
807WIDTH="20%"
808ALIGN="RIGHT"
809VALIGN="TOP"
810><I
811CLASS="EMPHASIS"
812>Returns</I
813> :</TD
814><TD
815WIDTH="80%"
816ALIGN="LEFT"
817VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000818>-1 in case of failure, 0 incase of success.</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000819></TR
820></TABLE
821><P
822></P
823></DIV
824></DIV
825><HR><DIV
826CLASS="REFSECT2"
827><A
Daniel Veillard0142b842000-01-14 14:45:24 +0000828NAME="AEN9271"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000829></A
830><H3
831><A
832NAME="XMLNANOHTTPCLOSE"
833></A
834>xmlNanoHTTPClose ()</H3
835><TABLE
836BORDER="0"
837BGCOLOR="#D6E8FF"
838WIDTH="100%"
839CELLPADDING="6"
840><TR
841><TD
842><PRE
843CLASS="PROGRAMLISTING"
844>void xmlNanoHTTPClose (void *ctx);</PRE
845></TD
846></TR
847></TABLE
848><P
849>This function closes an HTTP context, it ends up the connection and
850free all data related to it.</P
851><P
852></P
853><DIV
854CLASS="INFORMALTABLE"
855><P
856></P
857><TABLE
858BORDER="0"
859WIDTH="100%"
860BGCOLOR="#FFD0D0"
861CELLSPACING="0"
862CELLPADDING="4"
863CLASS="CALSTABLE"
864><TR
865><TD
866WIDTH="20%"
867ALIGN="RIGHT"
868VALIGN="TOP"
869><TT
870CLASS="PARAMETER"
871><I
872>ctx</I
873></TT
874>&nbsp;:</TD
875><TD
876WIDTH="80%"
877ALIGN="LEFT"
878VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000879> the HTTP context</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000880></TR
881></TABLE
882><P
883></P
884></DIV
885></DIV
886></DIV
887><DIV
888CLASS="NAVFOOTER"
889><BR
890CLEAR="all"><BR><TABLE
891WIDTH="100%"
892BORDER="0"
893BGCOLOR="#000000"
894CELLPADDING="1"
895CELLSPACING="0"
896><TR
897><TD
898WIDTH="25%"
899BGCOLOR="#C00000"
900ALIGN="left"
901><A
Daniel Veillard35008381999-10-25 13:15:52 +0000902HREF="gnome-xml-xpath.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000903><FONT
904COLOR="#FFFFFF"
905SIZE="3"
906><B
907>&#60;&#60;&#60; Previous Page</B
908></FONT
909></A
910></TD
911><TD
912WIDTH="25%"
913BGCOLOR="#0000C0"
914ALIGN="center"
915><FONT
916COLOR="#FFFFFF"
917SIZE="3"
918><B
919><A
920HREF="book1.html"
921><FONT
922COLOR="#FFFFFF"
923SIZE="3"
924><B
925>Home</B
926></FONT
927></A
928></B
929></FONT
930></TD
931><TD
932WIDTH="25%"
933BGCOLOR="#00C000"
934ALIGN="center"
935><FONT
936COLOR="#FFFFFF"
937SIZE="3"
938><B
939><A
Daniel Veillard35008381999-10-25 13:15:52 +0000940HREF="libxml-lib.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000941><FONT
942COLOR="#FFFFFF"
943SIZE="3"
944><B
945>Up</B
946></FONT
947></A
948></B
949></FONT
950></TD
951><TD
952WIDTH="25%"
953BGCOLOR="#C00000"
954ALIGN="right"
Daniel Veillard35008381999-10-25 13:15:52 +0000955><A
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000956HREF="gnome-xml-nanoftp.html"
Daniel Veillard35008381999-10-25 13:15:52 +0000957><FONT
958COLOR="#FFFFFF"
959SIZE="3"
960><B
961>Next Page &#62;&#62;&#62;</B
962></FONT
963></A
964></TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000965></TR
966><TR
967><TD
968COLSPAN="2"
969ALIGN="left"
970><FONT
971COLOR="#FFFFFF"
972SIZE="3"
973><B
Daniel Veillard35008381999-10-25 13:15:52 +0000974>xpath</B
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000975></FONT
976></TD
977><TD
978COLSPAN="2"
979ALIGN="right"
Daniel Veillard35008381999-10-25 13:15:52 +0000980><FONT
981COLOR="#FFFFFF"
982SIZE="3"
983><B
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000984>nanoftp</B
Daniel Veillard35008381999-10-25 13:15:52 +0000985></FONT
986></TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000987></TR
988></TABLE
989></DIV
990></BODY
991></HTML
992>