User Tools

Site Tools


w3m

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
w3m [2009/04/10 03:16]
k2patel
w3m [2009/04/10 03:19]
k2patel
Line 462: Line 462:
 </​code>​ </​code>​
 You can run CGI scripts using w3m, without any HTTP server. \\ You can run CGI scripts using w3m, without any HTTP server. \\
-It means that w3m behaves like an HTTP server and activates CGI script, \\ then w3m reads the output of the script and display it. \\The bookmark registration and helper-app editor are realized as local CGI scripts. \\Using local CGI, w3m can be used as a general purpose form interface.+It means that w3m behaves like an HTTP server and activates CGI script, \\ 
 +then w3m reads the output of the script and display it. \\ 
 +The bookmark registration and helper-app editor are realized as local CGI scripts. \\ 
 +Using local CGI, w3m can be used as a general purpose form interface.
  
 For security reason, CGI scripts invoked by w3m must be in one of these directories. For security reason, CGI scripts invoked by w3m must be in one of these directories.
Line 471: Line 474:
 The CGI script can use special header `w3m-control:'​ to control w3m. This field can take any function (see README.func),​ and the specified function is invoked after the document is displayed. For example, The CGI output The CGI script can use special header `w3m-control:'​ to control w3m. This field can take any function (see README.func),​ and the specified function is invoked after the document is displayed. For example, The CGI output
  
 +<code text>
 Content-Type:​ text/plain Content-Type:​ text/plain
 W3m-control:​ BACK W3m-control:​ BACK
 +</​code>​
  
 will display blank page and delete that buffer immediately. This is useful when you don't want to display any page after the script is invoked. The next example will display blank page and delete that buffer immediately. This is useful when you don't want to display any page after the script is invoked. The next example
  
 +<code text>
 Content-Type:​ text/plain Content-Type:​ text/plain
 W3m-control:​ DELETE_PREVBUF W3m-control:​ DELETE_PREVBUF
 +</​code>​
  
 contents..... contents.....
Line 485: Line 491:
  
 One w3m-control:​ header have to contain only one function, but you can include more than one w3m-control:​ lines in the HTTP header. In addition, you can specify an argument to GOTO function: One w3m-control:​ header have to contain only one function, but you can include more than one w3m-control:​ lines in the HTTP header. In addition, you can specify an argument to GOTO function:
 +<code text>
 Content-Type:​ text/plain Content-Type:​ text/plain
 W3m-control:​ GOTO http://​www.yahoo.com/​ W3m-control:​ GOTO http://​www.yahoo.com/​
 +</​code>​
  
 This example works exactly the same way to the Location header: This example works exactly the same way to the Location header:
 +<code text>
 Content-Type:​ text/plain Content-Type:​ text/plain
 Location: http://​www.yahoo.com/​ Location: http://​www.yahoo.com/​
 +</​code>​
  
 Note that this header has no effect when the CGI script is invoked through HTTP server. ​ Note that this header has no effect when the CGI script is invoked through HTTP server. ​
w3m.txt · Last modified: 2009/04/10 03:19 by k2patel