summaryrefslogtreecommitdiff
path: root/nanohttp.c
Commit message (Collapse)AuthorAgeFilesLines
...
* applied patch from Aron Stansvik for bug #172525 about HTTP query stringDaniel Veillard2005-04-131-0/+13
| | | | | | * nanohttp.c: applied patch from Aron Stansvik for bug #172525 about HTTP query string parameter being lost Daniel
* revamped the elfgcchack.h format to cope with gcc4 change of aliasingDaniel Veillard2005-04-011-0/+2
| | | | | | | | | | | * doc/apibuild.py doc/elfgcchack.xsl: revamped the elfgcchack.h format to cope with gcc4 change of aliasing allowed scopes, had to add extra informations to doc/libxml2-api.xml to separate the header from the c module source. * *.c: updated all c library files to add a #define bottom_xxx and reimport elfgcchack.h thereafter, and a bit of cleanups. * doc//* testapi.c: regenerated when rebuilding the API Daniel
* use XML_SOCKLEN_T instead of SOCKLEN_T since apparently IBM can't avoidDaniel Veillard2005-03-311-6/+6
| | | | | | | * config.h.in configure.in nanoftp.c nanohttp.c xmllint.c macos/src/config-mac.h: use XML_SOCKLEN_T instead of SOCKLEN_T since apparently IBM can't avoid breaking common defines #166922 Daniel
* This change started out as a simple desire to speed up theWilliam M. Brack2005-02-131-170/+39
| | | | | | | | | | | | | | | | execution time of testapi.c, which was being delayed by nameserver requests for non-existent URL's. From there it just sort of grew, and grew.... * nanohttp.c, nanoftp.c: changed the processing of URL's to use the uri.c routines instead of custom code. * include/libxml/xmlerror.h: added code XML_FTP_URL_SYNTAX * uri.c: added accepting ipV6 addresses, in accordance with RFC's 2732 and 2373 (TODO: allow ipV4 within ipV6) * gentest.py, testapi.c: fixed a few problems with the testing of the nanoftp and nanohttp routines. * include/libxml/xmlversion.h: minor change to fix a warning on the docs generation * regenerated the docs
* second part of the security fix for xmlNanoFTPConnect() andDaniel Veillard2004-10-271-0/+18
| | | | | | * nanoftp.c nanohttp.c: second part of the security fix for xmlNanoFTPConnect() and xmlNanoHTTPConnectHost(). Daniel
* added the routine xmlNanoHTTPContentLength to the external APIWilliam M. Brack2004-09-181-1/+0
| | | | | | | | | | | | * nanohttp.c, include/libxml/nanohttp.h: added the routine xmlNanoHTTPContentLength to the external API (bug151968). * parser.c: fixed unnecessary internal error message (bug152060); also changed call to strncmp over to xmlStrncmp. * encoding.c: fixed compilation warning (bug152307). * tree.c: fixed segfault in xmlCopyPropList (bug152368); fixed a couple of compilation warnings. * HTMLtree.c, debugXML.c, xmlmemory.c: fixed a few compilation warnings; no change to logic.
* small typo pointed out by Mike Hommey slightly improved the --c14nDaniel Veillard2004-08-161-1/+1
| | | | | | | | | | | | | | | | | | | * xmlIO.c: small typo pointed out by Mike Hommey * doc/xmllint.xml, xmllint.html, xmllint.1: slightly improved the --c14n description, c.f. #144675 . * nanohttp.c nanoftp.c: applied a first simple patch from Mike Hommey for $no_proxy, c.f. #133470 * parserInternals.c include/libxml/parserInternals.h include/libxml/xmlerror.h: cleanup to avoid 'error' identifier in includes # * parser.c SAX2.c debugXML.c include/libxml/parser.h: first version of the inplementation of parsing within the context of a node in the tree #142359, new function xmlParseInNodeContext(), added support at the xmllint --shell level as the "set" function * test/scripts/set* result/scripts/* Makefile.am: extended the script based regression tests to instrument the new function. Daniel
* hack based on Arjan van de Ven suggestion to reduce ELF footprint andDaniel Veillard2004-06-271-2/+2
| | | | | | | | | | | | | | * elfgcchack.h doc/elfgcchack.xsl libxml.h: hack based on Arjan van de Ven suggestion to reduce ELF footprint and generated code. Based on aliasing of libraries function to generate direct call instead of indirect ones * doc/libxml2-api.xml doc/Makefile.am doc/apibuild.py: added automatic generation of elfgcchack.h based on the API description, extended the API description to show the conditionals configuration flags required for symbols. * nanohttp.c parser.c xmlsave.c include/libxml/*.h: lot of cleanup * doc/*: regenerated the docs. Daniel
* implemented fix for M$ IIS redirect provided by Ian Hummel fixed problemWilliam M. Brack2004-04-021-1/+9
| | | | | | | * nanohttp.c: implemented fix for M$ IIS redirect provided by Ian Hummel * relaxng.c: fixed problem with notAllowed compilation (bug 138793)
* added a close for the local file descriptor (bug 137474)William M. Brack2004-03-171-0/+1
| | | | | * nanohttp.c: added a close for the local file descriptor (bug 137474)
* fixed the fix for the buffer overflow, thanks William :-)Igor Zlatkovic2004-02-091-7/+9
|
* fixed buffer overflow reported by Yuuich TeranishiIgor Zlatkovic2004-02-091-4/+4
|
* remove the warning on the 2001 namespace remove some warnings whenDaniel Veillard2004-02-091-1/+15
| | | | | | | | * xinclude.c: remove the warning on the 2001 namespace * parser.c parserInternals.c xpath.c: remove some warnings when compiling with MSVC6 * nanohttp.c: applied a patch when using _WINSOCKAPI_ Daniel
* second BeOS patch from Marcin 'Shard' Konicki DanielDaniel Veillard2003-11-011-0/+7
| | | | | | * tree.c nanohttp.c threads.c: second BeOS patch from Marcin 'Shard' Konicki Daniel
* applied patch from Marcin 'Shard' Konicki to provide BeOS thread support.Daniel Veillard2003-10-291-6/+6
| | | | | | * nanoftp.c nanohttp.c testThreads.c threads.c: applied patch from Marcin 'Shard' Konicki to provide BeOS thread support. Daniel
* Fixed the HTTP<->parser interraction, which should fix 2 long standingDaniel Veillard2003-10-191-1/+59
| | | | | | | | | | | * include/libxml/nanohttp.h include/libxml/parserInternals.h include/libxml/xmlIO.h nanohttp.c parserInternals.c xmlIO.c: Fixed the HTTP<->parser interraction, which should fix 2 long standing bugs #104790 and #124054 , this also fix the fact that HTTP error code (> 400) should not generate data, we usually don't want to parse the HTML error information instead of the resource looked at. Daniel
* starting work to fix the HTTP/XML parser integration. DanielDaniel Veillard2003-10-181-0/+32
| | | | | | * nanohttp.c xmlIO.c include/libxml/nanohttp.h: starting work to fix the HTTP/XML parser integration. Daniel
* fixed a nasty bug with interning some text strings prepare for beta5 ofDaniel Veillard2003-10-101-75/+40
| | | | | | | | | * SAX2.c: fixed a nasty bug with interning some text strings * configure.in: prepare for beta5 of 2.6.0 * libxml.h nanoftp.c nanohttp.c xmlIO.c include/libxml/xmlerror.h: better error handling for I/O and converted FTP and HTTP * parser.c: fixed another bug Daniel
* last finishing touch to the BeOS patch from Marcin 'Shard' Konicki DanielDaniel Veillard2003-09-291-0/+6
| | | | | | * nanoftp.c nanohttp.c: last finishing touch to the BeOS patch from Marcin 'Shard' Konicki Daniel
* Okay this is scary but it is just adding a configure option to disableDaniel Veillard2003-09-291-0/+6
| | | | | | | | | | | | | | | | | | * HTMLtree.c SAX2.c c14n.c catalog.c configure.in debugXML.c encoding.c entities.c nanoftp.c nanohttp.c parser.c relaxng.c testAutomata.c testC14N.c testHTML.c testRegexp.c testRelax.c testSchemas.c testXPath.c threads.c tree.c valid.c xmlIO.c xmlcatalog.c xmllint.c xmlmemory.c xmlreader.c xmlschemas.c example/gjobread.c include/libxml/HTMLtree.h include/libxml/c14n.h include/libxml/catalog.h include/libxml/debugXML.h include/libxml/entities.h include/libxml/nanohttp.h include/libxml/relaxng.h include/libxml/tree.h include/libxml/valid.h include/libxml/xmlIO.h include/libxml/xmlschemas.h include/libxml/xmlversion.h.in include/libxml/xpathInternals.h python/libxml.c: Okay this is scary but it is just adding a configure option to disable output, this touches most of the files. Daniel
* Applied patch from Mikhail Grushinskiy for mingw compiler on Windows.Daniel Veillard2003-08-141-0/+10
| | | | | | | * Makefile.am configure.in example/Makefile.am libxml.h nanoftp.c nanohttp.c xmllint.c: Applied patch from Mikhail Grushinskiy for mingw compiler on Windows. Daniel
* fixing bug 118559William M. Brack2003-07-311-3/+9
|
* cleanup patches from Peter Breitenlohner DanielDaniel Veillard2003-07-101-7/+5
| | | | | * nanoftp.c nanohttp.c: cleanup patches from Peter Breitenlohner Daniel
* the modules should not import <config.h> directly, some cleanups PeterDaniel Veillard2003-07-081-3/+3
| | | | | | | | * nanoftp.c nanohttp.c: the modules should not import <config.h> directly, some cleanups * xmlschemas.c: Peter Sobisch found a nasty bug in the Schemas validation code. Daniel
* regenerated might fix includes problems with the Ipv6 support on solarisDaniel Veillard2003-07-071-0/+3
| | | | | | | | | * NEWS doc/*: regenerated * nanoftp.c nanohttp.c: might fix includes problems with the Ipv6 support on solaris * tree.c: patch from Markus Keim about xmlHasNsProp() on attributes defined as #IMPLIED Daniel
* preparing release 1.5.8 changed some preprocessor block applied patch fromLIBXML2_2_5_8Daniel Veillard2003-07-061-1/+2
| | | | | | | | | * configure.in doc/*: preparing release 1.5.8 * nanohttp.c: changed some preprocessor block * xmlschemastypes.c: applied patch from Charles Bozeman adding hexBinary schema datatype and adding support for totalDigits and fractionDigits facets. Daniel
* Applying IPv6 patch from Archana Shah <archana.shah@wipro.com>Daniel Veillard2003-06-211-91/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | closing bug #114837 * configure.in: Added checks for IPv6 support and getaddrinfo(). * acconfig.h: Defined HAVE_GETADDRINFO and SUPPORT_IP6. * config.h.in: Defined HAVE_GETADDRINFO and SUPPORT_IP6. * nanoftp.c: Structure xmlNanoFTPCtxt contains either sockaddr_storage field or sockaddr_in field, depending upon the availability of IPv6 support. have_ipv6(): Added to check for run-time IPv6 support. (xmlNanoFTPScanURL), (xmlNanoFTPUpdateURL), (xmlNanoFTPScanProxy): Modified to parse a URI with IPv6 address given in []. (xmlNanoFTPConnect): Changed to use getaddrinfo for address resolution, if it is available on the system, as gethostbyname does not return IPv6 addresses on some platforms. (xmlNanoFTPGetConnection): Modified type of dataAddr variable to sockaddr_storage or sockaddr_in depending upon the IPv6 support. Sending EPSV, EPRT or PASV, PORT depending upon the type of address we are dealing with. * nanohttp.c: (have_ipv6): Added to check for run-time IPv6 support. (xmlNanoHTTPScanURL), (xmlNanoHTTPScanProxy): Modified to parse a URI with IPv6 address given in []. (xmlNanoHTTPConnectHost): Modified to use getaddrinfo if it is available on the system. Also IPv6 addresses will be resolved by gethostbyname only if IPv6 run-time support is available. (xmlNanoHTTPConnectAttempt): Modified to deal with IPv6 address. Daniel
* added xmlMallocAtomic() to be used when allocating blocks which do notDaniel Veillard2003-04-191-2/+2
| | | | | | | | | | | | * DOCBparser.c HTMLparser.c c14n.c catalog.c encoding.c globals.c nanohttp.c parser.c parserInternals.c relaxng.c tree.c uri.c xmlmemory.c xmlreader.c xmlregexp.c xpath.c xpointer.c include/libxml/globals.h include/libxml/xmlmemory.h: added xmlMallocAtomic() to be used when allocating blocks which do not contains pointers, add xmlGcMemSetup() and xmlGcMemGet() to allow registering the full set of functions needed by a garbage collecting allocator like libgc, ref #109944 Daniel
* 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