Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Treat "HEAD" same as "GET", so that CGI scripts won't fail. | Guido van Rossum | 1998-06-25 | 1 | -1/+1 |
| | |||||
* | Be more careful than the previous patch. The default content-type | Guido van Rossum | 1998-06-11 | 1 | -1/+4 |
| | | | | | | should only be set to application/x-www-form-urlencoded when the method is POST. E.g. for PUT, an empty default (defaulting to text/plain later) makes more sense. | ||||
* | Default content-type to application/x-www-form-urlencoded at the top | Guido van Rossum | 1998-06-09 | 1 | -1/+1 |
| | | | | | level of a form. This means that browsers that omit the content-type header when sending a POST command aren't penalized so heavily. | ||||
* | Make Tim O'Malley's requested change: in FieldStorage.__init__(), when | Guido van Rossum | 1998-05-08 | 1 | -1/+2 |
| | | | | | method='GET', always get the query string from environ['QUERY_STRING'] or sys.argv[1] -- ignore an explicitly passed in fp. | ||||
* | Mass check-in after untabifying all files that need it. | Guido van Rossum | 1998-03-26 | 1 | -534/+534 |
| | |||||
* | Use string.replace instead of regsub.[g]sub. | Guido van Rossum | 1997-12-24 | 1 | -7/+6 |
| | |||||
* | Use sys.exc_info() where needed. | Guido van Rossum | 1997-09-29 | 1 | -1/+2 |
| | |||||
* | Changes suggested by Jim fulton: | Guido van Rossum | 1997-08-12 | 1 | -13/+10 |
| | | | | | - Moved most imports to the top, for faster loadingf when using ni. - Always open the temp file in binary mode. | ||||
* | Add optional 'quote' flag argument to escape(); if true, translate '"' | Guido van Rossum | 1997-07-19 | 1 | -1/+3 |
| | | | | to '"'. | ||||
* | Tweak default source of query a bit so it is possible to invoke | Guido van Rossum | 1997-05-28 | 1 | -3/+6 |
| | | | | a CGI script from the command line with not environment variables. | ||||
* | Reworded the doc string to remove the need for The Emacs font-lock kludge. | Guido van Rossum | 1997-05-28 | 1 | -15/+13 |
| | | | | | This required (re)moving all occurrences of '(' in column 0, as well as changing "#!" to #!. | ||||
* | Untested changes by Skip Montanaro to have an optional limit on the | Guido van Rossum | 1997-05-13 | 1 | -0/+23 |
| | | | | size of uploads to POST (new version of these patches). | ||||
* | From: Clarence Gardner <clarence@king.silcom.com> | Guido van Rossum | 1997-04-11 | 1 | -2/+2 |
| | | | | | | The function parse_qs currently calls urllib.unquote on the value of the field submitted, but not on the name. It needs to do both. | ||||
* | Put back #! /usr/local/bin/python. For cgi scripts, /usr/bin/env is | Guido van Rossum | 1997-02-18 | 1 | -1/+1 |
| | | | | | unlikely to find a python binary, as /usr/local/bin is usually not on the default search path. | ||||
* | Add __len__ method | Guido van Rossum | 1997-01-11 | 1 | -0/+4 |
| | |||||
* | /usr/local/bin/python -> /usr/bin/env python | Guido van Rossum | 1996-11-27 | 1 | -2/+6 |
| | |||||
* | Added 'strict_parsing' option to all parsing functions. This causes a | Guido van Rossum | 1996-11-11 | 1 | -11/+27 |
| | | | | | | | | | | ValueError exception when the query string contains fields that don't contain exactly one '=' sign. (By default, such fields are simply ignored.) Added this to the doc string describing parse() and parse_qs(). Also changed the default for keep_blank_values from None to 0 (the preferred way to spell 'FALSE'). | ||||
* | Fix truncated paragraph in doc string. | Guido van Rossum | 1996-10-24 | 1 | -2/+3 |
| | | | | Bump version to 2.0. | ||||
* | Added logging support. | Guido van Rossum | 1996-09-05 | 1 | -0/+60 |
| | |||||
* | Fixed embarrassing logic bug in read_lines_to_outerboundary(). | Guido van Rossum | 1996-09-05 | 1 | -2/+3 |
| | |||||
* | Emacs font-lock de-bogo-kludgificocity | Guido van Rossum | 1996-08-26 | 1 | -0/+2 |
| | |||||
* | Added print_exception() convenience function. | Guido van Rossum | 1996-08-20 | 1 | -3/+21 |
| | |||||
* | For method=POST, append a query string from the environment or from | Guido van Rossum | 1996-08-08 | 1 | -1/+7 |
| | | | | sys.argv[1], effectively merging the fields. | ||||
* | Remove all CRLF -> LF translation for file uploads, since we cannot | Guido van Rossum | 1996-07-23 | 1 | -9/+14 |
| | | | | | | reliably distinguish binary files from text files (and Mac Netscape sends all files in "binary" form, i.e. it sends text files with only CR delimiters...). | ||||
* | Changes by Jim Fulton: pass environ around as arg; | Guido van Rossum | 1996-07-23 | 1 | -19/+52 |
| | | | | keep_blank_values option to parse(). | ||||
* | bump version (sorry) | Guido van Rossum | 1996-05-28 | 1 | -1/+1 |
| | |||||
* | capitalize H3 headers; add 'cgi.' prefix to example code | Guido van Rossum | 1996-05-28 | 1 | -4/+4 |
| | |||||
* | Added print_arguments() function. | Guido van Rossum | 1996-03-14 | 1 | -0/+8 |
| | |||||
* | Change to use real temporary files instead of StringIO. Correct and | Guido van Rossum | 1996-03-09 | 1 | -25/+40 |
| | | | | add to documentation. This will be released as cgi.py 2.0a1. | ||||
* | Considerable documentation changes and a few import rearrangements. | Guido van Rossum | 1996-03-09 | 1 | -61/+122 |
| | |||||
* | Reformatted with 4-space indentation. Added some quick docs to the | Guido van Rossum | 1996-03-07 | 1 | -551/+630 |
| | | | | FieldStorage class. | ||||
* | Added FieldStorage class, which stores parts in files. | Guido van Rossum | 1996-03-07 | 1 | -5/+272 |
| | | | | (Not documented yet, and the files are currently StringIO instances.) | ||||
* | Reformatting only. | Guido van Rossum | 1996-03-06 | 1 | -166/+177 |
| | |||||
* | File upload and revamped documentation. | Guido van Rossum | 1996-03-06 | 1 | -157/+572 |
| | |||||
* | handle missing QUERY_STRING | Guido van Rossum | 1995-09-18 | 1 | -1/+12 |
| | |||||
* | added parse_qs(query_string) | Guido van Rossum | 1995-08-07 | 1 | -0/+7 |
| | |||||
* | fix typos in escape() and print_form() | Guido van Rossum | 1995-03-14 | 1 | -4/+4 |
| | |||||
* | layout changes; quote & as well | Guido van Rossum | 1995-02-27 | 1 | -6/+13 |
| | |||||
* | new files | Guido van Rossum | 1995-01-12 | 1 | -0/+278 |