Using libwww with gnome/gtk+

Hello,

I have been looking at using at using libwww in one of the gnome
(www.gnome.org) programs I have written.  In doing this I have written up
some event register/unregister functions that use the glib event loop,
which makes libwww fit nicely into just about any gnome or gtk+ program.

If anyone else is interested in it, it is at /gnorpm/tests/glibwww.c in
the gnome CVS tree, which can be viewed at:
  http://cvs.gnome.org/lxr/source/gnorpm/tests/glibwww.c

This code may be useful for other people wanting to use libwww with gtk.

Now for my question:  what is the best way to only link with enough of
libwww to get http and ftp transfers (no HTML, XML, news, gopher, telnet,
etc)?  With libwww compiled as multiple shared libraries under unix, it
seems that if you use any of the higher level libraries you end up needing
to link with all the other libraries.

It seems that if you use the HTProfile_new* functions, you end up needing
symbols from every other library, even if the functionality is never used.
Is there a better way to initialise libwww?

I really only want a few transports and support for proxies and maybe
authentication and redirections.  My program parses the files, so the HTML
parser is not really needed.  I would prefer to keep the number of
libraries my program links to to a minimum.

James Henstridge.

--
Email: james@daa.com.au
WWW:   http://www.daa.com.au/~james/

Received on Sunday, 29 August 1999 21:41:02 UTC