Tk Library Source Code

View Ticket
Login
Ticket UUID: 1608820
Title: Doc update for ncgi - examples needed
Type: Patch Version: None
Submitter: tallniel Created on: 2006-12-04 22:35:40
Subsystem: ncgi Assigned To: andreas_kupries
Priority: 4 Severity:
Status: Closed Last Modified: 2013-07-04 17:25:34
Resolution: Not Applicable Here Closed By:
    Closed on:
Description:
A request on comp.lang.tcl revealed a lack of examples for basic usage of ncgi. Here's the basic example I replied with, but we probably need some others:

  #!/usr/bin/env tclsh
  package require ncgi
  ncgi::parse
  set pattern [ncgi::value vars "*"]
  puts "Content-Type: text/plain\n"
  puts "Environment Variables matching: $pattern"
  parray ::env $pattern