Ticket #54 (assigned enhancement)

Opened 16 months ago

Last modified 9 months ago

AWK CGI Library

Reported by: scott Owned by: scott
Priority: major Milestone:
Component: awkbot Version:
Keywords: Cc:

Description

Add an awk cgi library to the AWKBot tree which will implement the majority of the features of CGI.pm including, but not limited to:

  1. Multipart form handling
  2. File upload handling
  3. Cookies
  4. Query string parsing

The goal is to design for easy generation of CGI applications in AWK. One of the goals while writing this library should be to maintain portability (if possible, don't depend on GNU AWK) and consistently implement the CGI 1.1 Specification without discrepancy.

Risks

  1. Consistency issues, this will require a lot of cross-browser testing
  2. This appears to be a considerable amount of work, in some cases
  3. Not implementing MIME means limited functionality, and a MIME library might be needed as a follow up.

Assumptions

  1. Everything needed will be possible with portable AWK
  2. The line-oriented behavior of AWK will not hinder the ability to manage file uploads, and similar features.

Change History

Changed 9 months ago by scott

  • status changed from new to assigned

Changed 9 months ago by scott

  • milestone awkpaste deleted

Fundamental portions of this are completed as of [56]. form encoded POST requests are handled as well as query strings. output headers are handled appropriate as well, and url decoding functions have been added based on simple character lookup tables.

Multipart requests and cookies are not handled at this time (not considered necessary just yet) and so this ticket is being punted from the awkpaste milestone.

Note: See TracTickets for help on using tickets.