summaryrefslogtreecommitdiff
path: root/nanohttp.c
Commit message (Collapse)AuthorAgeFilesLines
* patch from Stefano Zacchiroli to fix some URI/file escaping problemsDaniel Veillard2003-01-101-8/+1
| | | | | | * nanoftp.c nanohttp.c xmlIO.c: patch from Stefano Zacchiroli to fix some URI/file escaping problems Daniel
* new API building Python script, does the C parsing directly, generates aDaniel Veillard2002-12-111-0/+4
| | | | | | | | | | | | | | | * doc/apibuild.py doc/libxml2-api.xml doc/Makefile.am: new API building Python script, does the C parsing directly, generates a better API description including structure fieds defs and enums. Still a couple of bugs, but good enough for the python wrappers now. * DOCBparser.c SAX.c nanohttp.c parser.c parserInternals.c tree.c valid.c xmlIO.c xmlmemory.c xmlreader.c xmlregexp.c xmlschemas.c include/libxml/schemasInternals.h include/libxml/tree.h: more cleanup based on the python analysis script reports. * libxml.spec.in: make sure the API XML description is part of the devel package. Daniel
* code cleanup, especially the function comments. fixed a small bug whenDaniel Veillard2002-12-101-2/+2
| | | | | | | | | | * DOCBparser.c HTMLparser.c c14n.c debugXML.c encoding.c hash.c nanoftp.c nanohttp.c parser.c parserInternals.c testC14N.c testDocbook.c threads.c tree.c valid.c xmlIO.c xmllint.c xmlmemory.c xmlreader.c xmlregexp.c xmlschemas.c xmlschemastypes.c xpath.c: code cleanup, especially the function comments. * tree.c: fixed a small bug when freeing nodes which are XInclude ones. Daniel
* handle HTTP URL escaping, problem reported by Glen Nakamura and StefanoDaniel Veillard2002-12-041-1/+9
| | | | | | * nanhttp.c: handle HTTP URL escaping, problem reported by Glen Nakamura and Stefano Zacchiroli Daniel
* replaced sprintf() with snprintf() to prevent possible buffer overflowAleksey Sanin2002-06-141-9/+11
| | | | | | | | * DOCBparser.c HTMLparser.c debugXML.c encoding.c nanoftp.c nanohttp.c parser.c tree.c uri.c xmlIO.c xmllint.c xpath.c: replaced sprintf() with snprintf() to prevent possible buffer overflow (the bug was pointed out by Anju Premachandran)
* trying to fix #77441 DanielDaniel Veillard2002-04-141-3/+3
| | | | | * configure.in: trying to fix #77441 Daniel
* applied patch from Allan Clark for UnixWare/OpenServer DanielDaniel Veillard2002-03-261-0/+3
| | | | | | * configure.in nanohttp.c: applied patch from Allan Clark for UnixWare/OpenServer Daniel
* fixing #76043, got fed up with non-portability of that piece of code.Daniel Veillard2002-03-251-1/+7
| | | | | | * nanohttp.c: fixing #76043, got fed up with non-portability of that piece of code. Daniel
* fixed bug #76168, attribute redeclared in the internal subset should notDaniel Veillard2002-03-251-0/+3
| | | | | | | | * valid.c SAX.c: fixed bug #76168, attribute redeclared in the internal subset should not raise duplicate ID errors, also there was a small bug in conjunction to namespace declarations defaulted and xml:xxx attributes DTD definitions. Daniel
* preparing 2.4.18 updated and rebuilt the web site implement the newLIBXML_2_4_18Daniel Veillard2002-03-181-0/+1
| | | | | | | | | | | | | * configure.in: preparing 2.4.18 * doc/*: updated and rebuilt the web site * *.c libxml.h: implement the new IN_LIBXML scheme discussed with the Windows and Cygwin maintainers. * parser.c: humm, changed the way the SAX parser work when xmlSubstituteEntitiesDefault(1) is set, it will then do the entity registration and loading by itself in case the user provided SAX getEntity() returns NULL. * testSAX.c: added --noent to test the behaviour. Daniel
* applied patch from Aleksey Sanin fixing a problem in the canonicalizationDaniel Veillard2002-03-151-59/+66
| | | | | | | | * c14n.c: applied patch from Aleksey Sanin fixing a problem in the canonicalization algorithm * doc/xml.html doc/index.html: added the C14N references on the index page. Daniel
* speedup some node selection operations, this can have a significant impactDaniel Veillard2002-03-131-0/+6
| | | | | | | | | * xpath.c: speedup some node selection operations, this can have a significant impact on DocBook Norm's stylesheets * nanohttp.c: someone reported that SOCKLEN_T may not be defined make sure it's always the case * debugXML.c: distinguish CDATA and comments in ls operations Daniel
* applied 42 documentation patches from Charlie Bozeman. Regenerated theDaniel Veillard2001-12-311-3/+5
| | | | | | * *.c include/libxml/*.h doc/html/*: applied 42 documentation patches from Charlie Bozeman. Regenerated the HTML docs. Daniel
* - include/libxml/globals.h include/libxml/threads.h threads.cDaniel Veillard2001-10-171-0/+1
| | | | | | testThreads.c: far more testing, cleaning up bugs - *.c : make sure globals.h is always included. Daniel
* Applied the last patches from Gary, cleanup, activated threading all userDaniel Veillard2001-10-131-0/+1
| | | | | | | | | | | | | | | * include/libxml/SAX.h include/libxml/globals.h include/libxml/parser.h include/libxml/parserInternals.h include/libxml/tree.h include/libxml/xmlerror.h HTMLparser.c SAX.c error.c globals.c nanoftp.c nanohttp.c parser.c parserInternals.c testDocbook.c testHTML.c testSAX.c tree.c uri.c xlink.c xmlmemory.c: Applied the last patches from Gary, cleanup, activated threading all user accessible global variables are now handled in globals.[ch] Still a bit rought but make tests passes with either --with-threads defined at configure time or not. * Makefile.am example/Makefile.am: added globals.[ch] and threads linking options Daniel
* applied Win32 Facelift No.2 patches from Igor Zlatkovic for Windows/MSCDaniel Veillard2001-08-031-1/+5
| | | | | | | | | | * DOCBparser.c Makefile.am nanohttp.c parser.c testHTML.c testSAX.c xmlIO.c xmllint.c include/win32config.h include/libxml/xmlversion.h.in include/libxml/xmlwin32version.h include/libxml/xmlwin32version.h.in win32/README.MSDev win32/dsp/*: applied Win32 Facelift No.2 patches from Igor Zlatkovic for Windows/MSC Daniel
* protected an use of EAGAIN, Brian Stafford DanielDaniel Veillard2001-07-311-0/+2
| | | | | * nanohttp.c: protected an use of EAGAIN, Brian Stafford Daniel
* John Kroll provided a small fix to xmlNanoHTTPSave DanielDaniel Veillard2001-07-251-1/+1
| | | | | * nanohttp.c: John Kroll provided a small fix to xmlNanoHTTPSave Daniel
* get rid of the readline and libhistory dependancies by default, releaseDaniel Veillard2001-07-231-59/+294
| | | | | | | | | | | * configure.in: get rid of the readline and libhistory dependancies by default, release 2.4.1 with IA64 fix * nanohttp.c tree.c xmlIO.c include/libxml/nanohttp.h include/libxml/tree.h include/libxml/xmlIO.h: incorporated John Kroll fixes to allow saving to HTTP via PUT (or POST of needed). * doc/html/*.html: regenerated the docs Daniel
* Cleanup, cleanup .. removed libxml softlink for good cleanup to get 100%Daniel Veillard2001-07-181-1/+5
| | | | | | | | Cleanup, cleanup .. * configure.in Makefile.am: removed libxml softlink for good * include/libxml/*.h *.c doc/Makefile.am: cleanup to get 100% coverage by gtk-doc Daniel
* Summer's cleanup, a really big one:Daniel Veillard2001-06-241-1/+1
| | | | | | | | | | | | | | | | * AUTHORS: added William and Bjorn * include/libxml/*.h *.c README doc/*.html etc.: changed old email to daniel@veillard.com hopefully I won't have to do this again * doc/Makefile.am doc/html/*.html: cleanup makefile, checked that docs can be rebuilt cleanly now * include/libxml/xml*version.h*: removed include/libxml/xmlversion.h from CVs it's generated, added include/libxml/xmlwin32version.h also generated but which should change far less frequently. * catalog.c nanoftp.c: made sure to include libxml.h not libxml/xmlversion.h directly * include/libxml/*.h: include xmlwin32version.h instead of xmlversion.h when compiling on WIN32 and MSC Daniel
* - nanoftp.c nanohttp.c uri.c include/win32config.h: Igor ZlatkovicDaniel Veillard2001-06-091-0/+1
| | | | | | | provided fixes to compile on MSCC again - win32/libxml2/libxml2.def.src win32/libxml2/libxml2*.dsp: he also provided an update for the project files. Daniel
* - TODO: updated - nanohttp.[ch] : started adding APIs to get theDaniel Veillard2001-05-281-7/+64
| | | | | | | | | | - TODO: updated - nanohttp.[ch] : started adding APIs to get the redirected URL when this occurs (needed for further base computation - tree.h: cleanup - encoding.c: cleanup - SAX.c: minor change around ctxt->loadsubset Daniel
* trio upgrade and integrationBjorn Reese2001-04-211-9/+1
|
* Huge cleanup, I switched to compile withDaniel Veillard2001-03-241-59/+44
| | | | | | | | | | | | | | | | | | | | -Wall -g -O -ansi -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline - HTMLparser.[ch] HTMLtree.c SAX.c debugXML.c encoding.[ch] encoding.h entities.c error.c list.[ch] nanoftp.c nanohttp.c parser.[ch] parserInternals.[ch] testHTML.c testSAX.c testURI.c testXPath.c tree.[ch] uri.c valid.[ch] xinclude.c xmlIO.[ch] xmllint.c xmlmemory.c xpath.c xpathInternals.h xpointer.[ch] example/gjobread.c: Cleanup, staticfied a number of non-exported functions, detected and cleaned up a dozen of problem found this way, avoided a lot of public function name/typedef/system names clashes - doc/xml.html: updated - configure.in: switched private flags to the really pedantic ones. Daniel
* Revert directory structure changesOwen Taylor2001-02-231-0/+1202
|
* moved to libxml directory - this allow simplify automake/autoconf. NowCET 2001 Tomasz Kłoczko2001-02-231-1202/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Feb 23 02:03:56 CET 2001 Tomasz Kłoczko <kloczek@pld.org.pl> * *.c *.h libxml files: moved to libxml directory - this allow simplify automake/autoconf. Now isn't neccessary hack on am/ac level for make and remove libxml symlink (modified for this also configure.in and main Makefile.am). Now automake abilities are used in best way (like in many other projects with libraries). * include/win32config.h: moved to libxml directory (now include directory isn't neccessary). * Makefile.am, examples/Makefile.am, libxml/Makefile.am: added empty DEFS and in INCLUDES rest only -I$(top_builddir) - this allow minimize parameters count passed to libtool script (now compilation is also slyghtly more quiet). * configure.in: simplifies libzdetestion - prepare separated variables for keep libz name and path to libz header files isn't realy neccessary (if someone have libz installed in non standard prefix path to header files ald library can be passed as: $ CFALGS="-I</libz.h/path>" LDFLAGS="-L</libz/path>" ./configure * autogen.sh: check now for libxml/entities.h. After above building libxml pass correctly and also pass "make install DESTDIR=</install/prefix>" from tar ball generated by "make dist". Seems ac/am reorganization is finished. This changes not touches any other things on *.{c,h} files level.
* Patches bug fixes and on new function:Daniel Veillard2001-01-151-0/+1
| | | | | | | | | | | | | | - xpath.c: fixed the comaprision of values and nodelists, need to compare nodelist still ... - debugXML.c: avoided a possible core dump - HTMLparser.c: cleanup - nanohttp.c: contributed fix. - tree.c: fixes in properties handling added xmlSetNsProp needed by libxslt - xpathInternals.h: exported xmlXPathBooleanFunction, added a comment - TODO: updated Daniel
* Patches: - HTMLparser.c: htmlCheckParagraph to checkDaniel Veillard2001-01-031-10/+37
| | | | | | | | Patches: - HTMLparser.c: htmlCheckParagraph to check htmlOmittedDefaultValue, reported by Jonas Borgström - nanohttp.c: Applied Bjorn Reese' IPV6 first patch Daniel
* Big OpenVMS patch: - nanohttp.c parser.[ch] tree.[ch] xmlIO.[ch] xmllint.cDaniel Veillard2000-11-251-1/+7
| | | | | | | | | Big OpenVMS patch: - nanohttp.c parser.[ch] tree.[ch] xmlIO.[ch] xmllint.c xpath.c parserInternals.h vms/build_libxml.com vms/config.vms Makefile.am: integrated a set of OpenVMS changes from Howard Taylor <Howard.Taylor@pacoast.com> Daniel
* Various patches and bug fixes, and XInclude progresses:Daniel Veillard2000-11-071-0/+30
| | | | | | | | | | | | | | | - nanohttp.[ch]: applied Wayne Davison patches to access the WWW-Authorization header. - parser.c: Closed Bug#30847: Problems when switching encoding in short files by applying Simon Berg's patch. - valid.c: fixed a validation problem - hash.c parser.h parserInternals.h testHTML.c testSAX.c tree.h xmlerror.h xmlmemory.h xmlversion.h.in: applied a DLL patch from Wayne Davison - xpointer.[ch]: added first version of xmlXPtrBuildNodeList() need to be extended to non full nodes selections. - xinclude.c: starts to work decently Daniel
* patched to redirrect all "out of context" error messages toDaniel Veillard2000-10-251-14/+26
| | | | | | | | | | | | a reconfigurable routine. The changes are: * xmlerror.h : added the export of an error context type (void *) an error handler type xmlGenericErrorFunc there is an interface xmlSetGenericErrorFunc(void *ctx, xmlGenericErrorFunc handler); to reset the error handling routine and its argument (by default it's equivalent to respectively fprintf and stderr. * all the c files: all wild accesses to stderr or stdout within the library have been replaced to calls to the handler. Daniel
* Applying provided patches :-)Daniel Veillard2000-10-251-247/+61
| | | | | | | - nanohttp.c : applied Wayne HTTP cleanup patch - tree.[ch]: applied TOM <ptittom@free.fr> for xmlNodeSetBase() and xmlNodeSetSpacePreserve() Daniel
* Bunch of fixes, finishing moving datastructures to the hash stuff:Daniel Veillard2000-10-241-3/+0
| | | | | | | | | | | | | | | | | | | - hash.[ch] debugXML.c: expanded/enhanced the API, added multikey tuples, made hash structure opaque - valid.[ch]: moved elements, attributes, notations decalarations as well as ID and refs to hash tables. - entities.c: hash cleanup - xmlmemory.c: fixed a dump problem in debug mode - include/Makefile.am: problem passing in DESTDIR= values patch from Marc Christensen <marc@calderasystems.com> - nanohttp.c: removed debugging remains - HTMLparser.c: the bogus tag should be ignored (Wayne) - HTMLparser.c parser.c: fixing a number of problems with the macros in the *parser.c files (Wayne). - HTMLparser.c: close the previous option when opening a new one (Marc Sanfacon). - result/HTML/*: updated the HTML results accordingly Daniel
* Patches added during last week on W3C CVS base:Daniel Veillard2000-10-221-2/+11
| | | | | | | | | | - tree.c: coalesce adjacent text nodes - valid.c: handling of blank nodes in DTd validation (raised by problems with a posteriori validation). - nanohttp.c: changing behaviour on HTTP write stuff. - HTMLtree.c: forced body and html to be explicitely closed. - xpath.h: exported more XPath functions. Daniel
* Another patch from Wayne Davison:Daniel Veillard2000-10-121-23/+30
| | | | | - nanoftp.c nanohttp.c xmlIO.c: Win32 patch nanoftp code work now Daniel
* - nanohttp.c: added xmlNanoHTTPTimeout(int delay), removed a bugDaniel Veillard2000-10-111-4/+17
| | | | | | xmlNanoHTTPMethod on input MimeType Tony Lam <Tony.Lam@eng.sun.com> - xpointer.c: slight extension of xmlXPtrLocationSetMerge Daniel
* patch for socklen_t detection by Albert Chin-A-Young <china@thewrittenword.com>Daniel Veillard2000-10-111-5/+1
| | | | Daniel
* More work toward 2.2.5, integrated a number of patchesDaniel Veillard2000-10-101-31/+65
| | | | | | | | | | | | | | | - configure.in Makefile.am win32config.h.in: trying to cleanup make distcheck .... huh ... - include/Makefile.am include/win32config.h: new directory for includes - win32/Makefile.mingw win32/README.MSDev win32/libxml2/libxml2.dsp updated teh makefiles and instructions for WIN32 - xpath.c: small fixes - test/XPath/ results/XPath: updated the testcases and results - HTMLparser.c nanohttp.c testXPath.c: incorporated provided or suggested patches - valid.c: fixed an ID bug Daniel
* - moved xml-error.h to xmlerror.h: seems this allowed to bypassDaniel Veillard2000-10-091-1/+1
| | | | | | the automake bug where wrong dependancies were generated. - xpath.[ch]: worked on XPointer Daniel
* Got an OSF/1 bug report fixing related problems:Daniel Veillard2000-09-241-1/+5
| | | | | | | - xmlversion.h.in nanoftp.c nanohttp.c: traying to work out the problem of socklen_t being undefined on a number of platforms - debugXML.c: fixed a compilation problem when without snprintf Daniel
* Small bugfixes: - HTMLparser.c uri.c: Another patch from Wayne Davison,Daniel Veillard2000-09-231-6/+1
| | | | | | | | Small bugfixes: - HTMLparser.c uri.c: Another patch from Wayne Davison, correcting an URI bug and a fix for the control-character-induced infinite loop - nanohttp.c: preventive fix for compiling on WIN32 Daniel
* avoid possible future probs on Win32, daniel.Daniel Veillard2000-09-221-1/+6
|
* Cleanup, patch from Wayne Davison:Daniel Veillard2000-09-221-18/+6
| | | | | | | | | - xmlIO.h tree.h: made xmlNodeDump() and xmlNodeDumpOutput() public - parser.[ch] nanohttp.c HTMLtree.c HTMLparser.c tree.c: applied and modified slightly Wayne Davison patch adding xmlStrcasecmp and related function, fixing xmlStrncmp(), and associated cleanup - result/HTML/entities.html.sax: updating result Daniel
* Jumbo patch, resync of W3C/Gnome CVS trees:Daniel Veillard2000-09-101-5/+8
| | | | | | | | | | | | | | | - uri.c tree.c SAX.c parser.c entities.c debugXML.c: finished the cleanup of the computation of URI references when seeking external entities. The URI reference string and the resulting URI are both stored now. - parser.c HTMLparser.c valid.c nanoftp.c nanohttp.c xpath.c: large s(n)printf checks and cleanup from Denis Barbier <barbier@imacs.polytechnique.fr> - xmlversion.h.in tree.h: couple of SGML declarations for a possible docbook module. - result/VC/ : a couple of test output changed due to the change of the entities URI Daniel
* Small cleanups, updates, DanielDaniel Veillard2000-08-201-1/+1
|
* - nanohttp.c: fixed socklen_t replacement to unsigned intDaniel Veillard2000-07-211-1/+1
| | | | | | | | | - parser.c: fixed a space handdling missing at the end of production 28 DOCTYPE. - xmlmemory.c: fixed a stupid bug on the routine to override allocation functions - TODO: updated Daniel
* - doc/encoding.html doc/xml.html: added I18N docDaniel Veillard2000-07-141-1/+1
| | | | | | | | | | | | | | | | | | | | - encoding.[ch] HTMLtree.[ch] parser.c HTMLparser.c: I18N encoding improvements, both parser and filters, added ASCII & HTML, fixed the ISO-Latin-1 one - xmllint.c testHTML.c: added/made visible --encode - debugXML.c : cleanup - most .c files: applied patches due to warning on Windows and when using Sun Pro cc compiler - xpath.c : cleanup memleaks - nanoftp.c : added a TESTING preprocessor flag for standalong compile so that people can report bugs more easilly - nanohttp.c : ditched socklen_t which was a portability mess and replaced it with unsigned int. - tree.[ch]: added xmlHasProp() - TODO: updated - test/ : added more test for entities, NS, encoding, HTML, wap - configure.in: preparing for 2.2.0 release Daniel
* - Large resync between W3C and Gnome treeDaniel Veillard2000-06-281-0/+17
| | | | | | | | | | | | | | | | | | | - configure.in: 2.1.0 prerelease - example/Makefile.am example/gjobread.c tree.h: work on libxml1 libxml2 convergence. - nanoftp, nanohttp.c: fixed stalled connections probs - HTMLtree.c SAX.c : support for attribute without values in HTML for andersca - valid.c: Fixed most validation + namespace problems - HTMLparser.c: start document callback for andersca - debugXML.c xpath.c: lots of XPath fixups from Picdar Technology - parser.h, SAX.c: serious speed improvement for large CDATA blocks - encoding.[ch] xmlIO.[ch]: Improved seriously saving to different encoding - config.h.in parser.c xmllint.c: added xmlCheckVersion() and the LIBXML_TEST_VERSION macro Daniel
* removed extraneous xmlRemoveProp definition added item aboutDaniel Veillard2000-04-241-2/+2
| | | | | | | | | | | | | * tree.h: removed extraneous xmlRemoveProp definition * TODO: added item about --disable-corba configure switch * tree.c parser.c: fixed problems for xmlCopyDoc and postvalidation * nanoftp.c: fixed include problems giving troubles on AIX and slowlaris * xmlIO.[ch] valid.h tree.[ch] xlink.c xmlmemory.c uri.c parser.c nanoftp.c nanohttp.c SAX.c testSAX.c : comment and headers changes to lower gtk-doc number of warnings * doc/html/*: rebuilt docs Daniel