#!/usr/bin/perl -w # Simple perl script demonstrating dynamically creating fill-out forms for # QA testing, with output in EARL. (http://www.w3.org/2001/03/earl/) # This script is licensed under the w3c software license available at # http://www.w3.org/Consortium/Legal/copyright-software-19980720 # Comments to nadia@barbwired.com use CGI::Pretty; use LWP::UserAgent; use URI::Escape; use lib "."; use RDFtest; use EARL; use CGI::Carp qw(fatalsToBrowser); $ROOT = 'http://www.w3.org/QA/Tools/MUTAT'; $page = new CGI; if (!$page->param()) { &demand_testurl ; exit 0; } # prints out the script's source if ($page->param('script_print')) { open(SCRIPT, $page->url(-relative=>1)); print $page->header('text/plain'),