| Revision 373,
501 bytes
checked in by jdalbey, 7 years ago
(diff) |
|
Update filenames in code to match dir reorg
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/usr/bin/python |
|---|
| 2 | # Save parameter to a file |
|---|
| 3 | # Import modules for CGI handling |
|---|
| 4 | import cgi, cgitb, os |
|---|
| 5 | |
|---|
| 6 | # Create instance of FieldStorage |
|---|
| 7 | form = cgi.FieldStorage() |
|---|
| 8 | |
|---|
| 9 | # Get data from fields |
|---|
| 10 | outMessage = form.getvalue('msg') |
|---|
| 11 | |
|---|
| 12 | # write message to file |
|---|
| 13 | text_file = open("dynamicdata/har_messages.json", "w") |
|---|
| 14 | text_file.write(outMessage) |
|---|
| 15 | text_file.close() |
|---|
| 16 | |
|---|
| 17 | #print "Content-type:text/html\n\n" |
|---|
| 18 | #print "<html><body>" |
|---|
| 19 | #print "Here is the message<br>" |
|---|
| 20 | #print outMessage |
|---|
| 21 | #print "<br>" |
|---|
| 22 | #print "</body></html>" |
|---|
Note: See
TracBrowser
for help on using the repository browser.