[Gllug] C library needed

tet at accucard.com tet at accucard.com
Tue Feb 12 16:17:11 UTC 2002


>I need a small static C library to retrieve a file from an HTTP server, i.e.
>nothing clever is needed.
>Any suggestions? I have already tried libwww from http://www.w3.org but this
>is too big.

Obvious answer... write it yourself. It's a pretty trivial thing to
connect to port 80 on the target machine, and send an HTTP GET request.
See all the obvious places:

	socket(2)
	connect(2)
	gethostbyname(3)
	send(2)
	recv(2)
	rfc2068

etc. Of course, if you want to handle all the error conditions properly,
you'll probably end up as big as libwww :-)

Tet

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list