You have two ways to apply this patch into libwww source code, an easy way and a "not so easy" way. For the easy way, you should follow these instructions:
cd <topsrcdir>
tar -cvzf libwww5.3.2.Backup.tar.gz libwww5.3.2/
aclocal; autoheader; automake; autoconf
./configure --with-dav --with-extension <your habitual options>
make
The "not so easy" way is using patch command. The "txt" files in libwwwDAV/docs directory have been produced using "diff -c -b -t" command. You may use them to apply the modifications. I suggest you to use "patch -b -l --verbose <a_diff_file> <your_libwww_original_file" for each file. Of course, before do this, you should follow the steps 1 and 2 from the above instructions.
Note: the example files "myext*.c" (which demonstrates the use of the new "extension method" _ see HTMethod.html for more details) needs the option --with-extension in configure and also the XML module.
This patch have been tested only in a few Linux systems against Apache web server. So, I'm sure there is many bugs waiting for us in this code... But, at this specific moment, the known bugs are :
Very special thanks to the members of the libwww discussion list. Thanks to Josh Watts, Steinar Bang, Xinju Wang, and many others who contributed with WebDAV discussions in libwww mailing list. Without your contributions this "patch" was impossible. Thanks also to Jose Kahan and all W3C staff and to INRIA Rhone-Alpes staff.
Libwww is a Copyright from W3C (MIT, INRIA, Keio ), All Rights Reserved. W3C liability, trademark, document use and software licensingrules apply. Read W3CŪ Intellectual Property Notice and Legal Disclaimers before use it.
WebDAV module for Libwww was written by Manuele Kirsch Pinheiro, as part of Project CEMT.