[Gllug] C library needed
Matthew Kirkwood
matthew at hairy.beasts.org
Tue Feb 12 16:33:11 UTC 2002
On Tue, 12 Feb 2002 robin.c.smith at bt.com wrote:
> I need a small static C library to retrieve a file from an HTTP
> server, i.e. nothing clever is needed.
libghttp is probably not a bad place to start. It
came from (comes with?) but is independant of GNOME.
It looks like:
#include <ghttp.h>
..
ghttp_request *req;
char *content;
..
req = ghttp_request_new();
ghttp_set_uri(req, THEURL);
ghttp_set_header(req, http_hdr_Connection, "close");
ghttp_set_header(req, "Cookie", "LSEPrices=version=19");
ghttp_prepare(req);
ghttp_process(req);
content = ghttp_get_body(req);
(From my personal stock ticker.)
It is "more or less unmaintained" (http://people.redhat.com/blizzard/)
but Works For Me.
Matthew.
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list