From owner-freebsd-questions Wed Feb 17 10:36:31 1999 Delivered-To: freebsd-questions@freebsd.org Received: from hydrogen.fircrest.net (metriclient-1.uoregon.edu [128.223.172.1]) by hub.freebsd.org (Postfix) with ESMTP id 515CB1135D for ; Wed, 17 Feb 1999 10:35:45 -0800 (PST) (envelope-from gurney_j@efn.org) Received: (from jmg@localhost) by hydrogen.fircrest.net (8.9.1/8.8.7) id KAA08263; Wed, 17 Feb 1999 10:35:18 -0800 (PST) Message-ID: <19990217103518.43814@hydrogen.nike.efn.org> Date: Wed, 17 Feb 1999 10:35:18 -0800 From: John-Mark Gurney To: keith@apcs.com.au Cc: questions@freebsd.org Subject: Re: cgiparse ? how to References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: ; from Keith Anderson on Thu, Feb 18, 1999 at 12:47:04AM +1100 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 3.0-CURRENT i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Keith Anderson scribbled this message on Feb 18: > anyone used "cgiparse" in the ports collection. > > any demo programs I can look at to see how it ticks? there is a test.c file that I included with the distribution that I use to test a few of the functions as I write them... but the library is very easy to use.... > any www pages or pointers, some kind person may shed some light on me. basicly you can just do something like: int main(int argc, char *argv[]) { htmlheader(); printf("%s%s", cgigetvalue("title"), cgigetvalue("body")); exit(0); } there you go, you now have a cgi that puts the value of title into the title, and the value of the body into the body of the page returned... most of the documentation is in the cgi.h header... but there are a few man pages included that give you the basic usability for it... I am also going to be releasing a new version of cgiparse really soon now that will be more cross platform compatible (doesn't use bsd make files) and I believe fixes a couple bugs... if you have any more questions, you can directly address me... -- John-Mark Gurney Voice: +1 541 684 8449 Cu Networking P.O. Box 5693, 97405 Live in Peace, destroy Micro$oft, support free software, run FreeBSD Don't trust anyone you don't have the source for To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message