@@ -187,7 +187,8 @@ <h2 id="ippeveprinter-1.options">Options</h2>
187187Show program usage.
188188</ p >
189189 < p style ="margin-left: 2.5em; text-indent: -2.5em; "> < strong > --no-web-forms</ strong > < br >
190- Disable the web interface forms used to update the media and supply levels.
190+ Disable the web interface forms used to update the media, state, and supply levels.
191+ See the "WEB INTERFACE FORMS" section for more information.
191192</ p >
192193 < p style ="margin-left: 2.5em; text-indent: -2.5em; "> < strong > --pam-service </ strong > < em > SERVICE</ em > < br >
193194Set the PAM service name.
@@ -369,6 +370,29 @@ <h2 id="ippeveprinter-1.command-output">Command Output</h2>
369370</ p >
370371 < p style ="margin-left: 2.5em; text-indent: -2.5em; "> < strong > STATE: +</ strong > < em > keyword[,keyword,...]</ em > < br >
371372Adds the listed keywords to the printer's "printer-state-reasons" attribute.
373+ </ p >
374+ < h2 id ="ippeveprinter-1.web-interface-forms "> Web Interface Forms</ h2 >
375+ < p > < strong > ippeveprinter</ strong >
376+ provides a simple web interface with forms for updating the current media, state, and supply levels of the printer.
377+ Since these forms offer no security restrictions, they can be disabled using the
378+ < strong > --no-web-forms</ strong >
379+ option.
380+ HTTP "GET" requests can be used to update printer values programmatically:
381+ </ p >
382+ < p style ="margin-left: 2.5em; text-indent: -2.5em; "> < strong > GET /?reasons=</ strong > < em > KEYWORD[,...,KEYWORD]</ em > < br >
383+ </ p >
384+ < p style ="margin-left: 2.5em; text-indent: -2.5em; "> < strong > GET /?reasons=+</ strong > < em > KEYWORD[,...,KEYWORD]</ em > < br >
385+ </ p >
386+ < p style ="margin-left: 2.5em; text-indent: -2.5em; "> < strong > GET /?reasons=-</ strong > < em > KEYWORD[,...,KEYWORD]</ em > < br >
387+ Set, add, or remove the specified "printer-state-reasons" keywords.
388+ </ p >
389+ < p style ="margin-left: 2.5em; text-indent: -2.5em; "> < strong > GET /media?sizeN=</ strong > < em > SIZE-NAME</ em > < strong > &typeN=</ strong > < em > TYPE-NAME</ em > < strong > &levelN=</ strong > < em > NUM-SHEETS</ em > < br >
390+ Update the media size, type, and number of sheets for source N (starting at 0).
391+ Multiple sources can be updated in a single request by adding more sets of form values.
392+ </ p >
393+ < p style ="margin-left: 2.5em; text-indent: -2.5em; "> < strong > GET /supplies?supplyN=</ strong > < em > PERCENT</ em > < br >
394+ Update the current level of supply N (starting at 0).
395+ Multiple supplies can be updated in a single request by adding more form values.
372396</ p >
373397 < h2 id ="ippeveprinter-1.examples "> Examples</ h2 >
374398< p > Run
0 commit comments