[1] [[w3m]] は local file ([CODE(URI)[[[file:]]]] URI であらわされる資源) を [[HTTP]] のように [[CGIスクリプト]]として扱う local CGI 機能があります。少々の w3m の動作の取得・制御も可能です。 [2] 安全上の理由から、 local CGI script と認識され得るのは [CODE(URI)[file:///cgi-bin/]] 以下とかに限られます。 (このディレクトリは仮想で、実体は w3m の設定で指定します。) [18] JG4ouI khkuxlhcxnme, [url=http://hfkenoyxgeol.com/]hfkenoyxgeol[/url], [link=http://ytydogjjvalp.com/]ytydogjjvalp[/link], http://usfgegqepsqy.com/ ([[eeuwvlu]] [dksyxv@axpefo.com] [WEAK[2008-07-08 09:31:57 +00:00]]) [19] JG4ouI khkuxlhcxnme, [url=http://hfkenoyxgeol.com/]hfkenoyxgeol[/url], [link=http://ytydogjjvalp.com/]ytydogjjvalp[/link], http://usfgegqepsqy.com/ ([[eeuwvlu]] [dksyxv@axpefo.com] [WEAK[2008-07-08 09:32:11 +00:00]]) [20] Very Nice Site! Thanx! http://excellent-credit-card.blogspot.com ([[prepaid card]] [carli@gmail.com]) [21] Very Nice Site! Thanx! getting a gas card with poor credit bad credit creditcard approvals want a creditcard for bad credit get approved for credit with bad credit mastercard less than perfect credit ([[banamex]] [horrible credit] [WEAK[2008-08-22 17:41:18 +00:00]]) [22] Very Nice Site! Thanx! credit offers for bad credit no annual fees criedt cards for people with bad criedt no set up fees only pre approved bank cards by first premier bank bad credit retal cards www.all creditcards for bad credit ([[bad cards]] [orchard card] [WEAK[2008-08-22 21:10:56 +00:00]]) [23] Very Nice Site! Thanx! bad credit nz mortgage bad credit loans.com premier bank gold card denied bad cried cards poor credit score and applying american express card ([[establish]] [bacruptcy loans] [WEAK[2008-08-22 21:23:30 +00:00]]) [24] Very Nice Site! Thanx! instant approval bad credit $1 000 limit visa charge cards to rebuild your credit 2 500 credit limit best credit care for bad credit best card to improve your credit ([[mycredit report]] [credit rebuild] [WEAK[2008-08-23 05:37:25 +00:00]]) [25] Very Nice Site! Thanx! create card for people with bad cridet get visa or mastercard bad credit orchard card status.com secured cards for bad credit with no fee unsecure master card poor credit.com ([[subprime cards]] [beginners] [WEAK[2008-08-23 11:23:23 +00:00]]) [26] Very Nice Site! Thanx! credit with limited credit how to get american express poor credit orchard bank gold mastercard credit limit 7200.00 platium creadit cards approved with bad credit bad credit aspire ([[equifax]] [cb t] [WEAK[2008-08-23 19:29:54 +00:00]]) [27] Very Nice Site! Thanx! credit score 478 rebuilt ur credit how do credit score improve rebuild credit. premier credit manager ([[sterling bank]] [danita@gmail.com]) [28] Very Nice Site! Thanx! rebuilding credit with no fees rebuild my credit rebuild credit creditcard mastercard without security deposit required for people with bad credit bad credit guaranteed approval for line of credit ([[1st financial]] [charise@gmail.com]) [29] Very Nice Site! Thanx! raise credit score how to get credit when its bad citi premier pass elite level card how to find an ivestor when you have bad personal credit creditcards hsbc bad credit ([[bad land]] [amsouth] [WEAK[2008-08-24 02:20:46 +00:00]]) [30] Very Nice Site! Thanx! will my credit score improve when negative items are deleted creditcards bad credit no annual fee cadit cards to rebuild credit what american express with poor credit secure line of credit poor credit ([[orchid bank]] [fist premier] [WEAK[2008-08-24 02:22:45 +00:00]]) [31] Very Nice Site! Thanx! how to fix a credit report bad credir cards poor credit balance transfer bad credit hp metabank visa card ([[associates citi]] [athena@gmail.com]) [32] Very Nice Site! Thanx! crdiet offer for consumer the bad credit american pacific bank cards banks in chicago that offer credit rebuilding cards redit cards for people with bad credit in the usa credi cards for bad credit ([[fico scores]] [deidre@gmail.com]) [33] Very Nice Site! Thanx! mastercard visa for bad little or no credit damaged credit apply online cards line of credit for 5000 dollars with 550 fico score poor or no credit bad credit apply for 0% balance transfers ([[wamu creditcard]] [starting credit] [WEAK[2008-08-24 11:27:32 +00:00]]) [34] Very Nice Site! Thanx! airline credit for bad credit aspire card ways to rebuild credit score what to do if you have insufficient credit restoring credit ([[beginers credit]] [anette@gmail.com]) [35] Very Nice Site! Thanx! chase amazon rewards card bad deal premier bank second card offer bad creditcredit card application credit for those with bad credit no fees usa premier credit ([[credit restore]] [pay aspire] [WEAK[2008-08-25 05:56:34 +00:00]]) [36] Very Nice Site! Thanx! guaranteed visa 500 credit line is 616 a bad credit score free visa cards for bad credit visa with bad credit without fees visa card application for poor credit ([[fleet financial]] [fix credit] [WEAK[2008-08-25 07:07:41 +00:00]]) [37] Very Nice Site! Thanx! how to get a balance transfer with bad credit the limited store credit 616 credit score bad cret cards bad credit online applications ([[fico report]] [teens piling] [WEAK[2008-08-25 09:31:21 +00:00]]) [38] Very Nice Site! Thanx! get a 1000 $ limit card credit with bad credit mastercard unsecured bad credit credictcard bad credit no bank acount babies r us bad credit but want a unsercured visa bad credit and discover card ([[visa usbank]] [credit starting] [WEAK[2008-08-25 21:37:37 +00:00]]) [39] Very Nice Site! Thanx! bad credit private lenders find a master card with no annual fee for people with less than perfect credit where can i apply for a credit even if i have bad credit need a lon have bad credit bad gas cards ([[secure credit]] [aspire account] [WEAK[2008-08-26 05:08:29 +00:00]]) [40] Very Nice Site! Thanx! unsecured credit rebuilding first premeir adventium card premier creit card check cards for poor credit get approve for a gas card with a 500 credit score ([[premier platum]] [unsecure cards] [WEAK[2008-08-26 05:23:52 +00:00]]) [41] Very Nice Site! Thanx! 501 3 c establishing credit how to apply for a credit and has poor credit bad credit creditcard applications bad credit visa cards.co.uk restore credit quickly ([[orchard bank]] [equifax credit] [WEAK[2008-08-26 13:41:03 +00:00]]) [42] Very Nice Site! Thanx! how to find an ivestor when you have bad personal credit good bank card bad credit instant approval for department store credit with limited credit history what is the credit limit for orchard bank mastercard gold where can i find a mastercard with a credit limit of 5 000 dollars with bad credit ([[orchard apply]] [orchard apply] [WEAK[2008-08-26 21:58:59 +00:00]]) [43] Very Nice Site! Thanx! orchard bank gold card privileges 1st premier credit visa balance transfers with bad credit no annual fee bad credit cads bad card credit master unsecured ([[beacon score]] [credit report] [WEAK[2008-08-26 23:08:59 +00:00]]) [44] Very Nice Site! Thanx! poor credit frequent flyer miles bad credit unsecured discover card apply credit bad credit no annual fee bad credit unsecured online approval bad redit unsecured redit card ([[emerge]] [premier platum] [WEAK[2008-08-27 07:05:10 +00:00]]) [45] Very Nice Site! Thanx! how to get creditcard with bad credit no annual fee bad credit cads how do i legitimately rebuild my credit no fee instant use creditcard bad credit ok unsecured visa mastercard for bad credit ([[providen bank]] [built credits] [WEAK[2008-08-28 10:51:08 +00:00]]) [46] Very Nice Site! Thanx! how get a criedt card with bad criedt balance transfers good or bad for credit score bad credit creditcards unsecured poor credit rating cedit cards find a card for bad credit ([[bmw bank]] [fix credit] [WEAK[2008-08-28 18:07:27 +00:00]]) [47] Very Nice Site! Thanx! retail credit bad credit mastercard or visa applications bad credit unsecured credit rebuilding first premiere bank for bad credit bad cards poor credit cards.com ([[building credit]] [tcm visa] [WEAK[2008-08-28 21:48:31 +00:00]]) [48] Very Nice Site! Thanx! first premeir credit secure credit crd for bad credit 581 fico credit approval unsecured bad cedit cards limited credit best card ([[0% debt]] [beginners piano] [WEAK[2008-08-29 04:41:47 +00:00]]) [49] Very Nice Site! Thanx! bad credit earn mile points how to apply for a visa card with a credit rating of 518 applyfor total visa poor credit crdit card balance transfers for problem credit rebuild credit credit cards.com ([[teen credit]] [cathi@gmail.com]) [50] Very Nice Site! Thanx! apply for creit card with bad credit 500 line of credit first premier prestige gold card one application credit offers bad credit how do i get a platinum american express with poor credit ([[prepaid visa]] [fix credit] [WEAK[2008-08-29 18:32:38 +00:00]]) [51] Very Nice Site! Thanx! centennial bank visa back your credit rating the best card to repair your credit platinum card offers from first premier creditcard applications for bad credit retail credit bad credit ([[prepaid cards]] [secured vias] [WEAK[2008-08-30 03:01:05 +00:00]]) [52] Very Nice Site! Thanx! master cards with poor crdit transferring balances and bad credit bad credit land home visa card for bad creadits creadit card applications for bad credit ([[pay aspire]] [wellsfargo bank] [WEAK[2008-08-30 04:39:30 +00:00]]) [53] Very Nice Site! Thanx! store credit with bad crdit card right for people with limited credit history creditcard for poor credit www.com. port orchard credit apply for aspire cr3edit card ([[orchard visa]] [criedt report] [WEAK[2008-08-30 11:16:06 +00:00]]) [54] Very Nice Site! Thanx! a catologue with bad credit how to get help for bad credit 1000 credit limit for bad no credit credi card orchard getting an american express with poor credit ([[bad]] [aspire online] [WEAK[2008-08-30 20:49:39 +00:00]]) [55] Very Nice Site! Thanx! how to instantly improve credit score unsecured visa cards to rebuild credit instant approvals for bad credit mastercard 528 credit score re estavlishing bad credit ([[credit starters]] [chara@gmail.com]) [56] Very Nice Site! Thanx! unsecured american express bad credit low processing fee unsecured visa for bad credit unsecured master card for bad credit unsecured visa and master cards bad credit best credit history repair ([[emerge bank]] [prepaid card] [WEAK[2008-08-31 01:33:43 +00:00]]) [57] Very Nice Site! Thanx! credit restore cards looking to rebuild credit without costing a lot rebuilt credit reror bad criedt need criedt card help build bad credit to good ([[transunion]] [bernie@gmail.com]) [58] Very Nice Site! Thanx! fica credit score 576 rebuilding or establishing credit apply for a visa with poor credit mastercard bad credit no credit bad credit gps receiver financing ([[prepaid amex]] [candi@gmail.com]) [59] Very Nice Site! Thanx! orchard bank cradit card no and the hold bad credit cardst for a crdit card with bad credit capital one card to restore credit help with rebuild your credit ([[aspire cards]] [breanna@gmail.com]) [60] Very Nice Site! Thanx! 2 500 line of credit unsecured mc or visa with poor credit poor crdit cards bad visa cards credit repair cheap ([[fleet card]] [credit starter] [WEAK[2008-09-01 07:23:46 +00:00]]) [61] Very Nice Site! Thanx! very bad credit visa mastercard aspire visa cards premier bank cradit cards no annual fee and bad credit credit bureau in rapid city south dakota ([[juniper bank]] [andria@gmail.com]) [62] Very Nice Site! Thanx! desire visa card for bad credit unscurd visa card for bad credit first premier credit monitoring metabank secured visa card aspirecard credit application.com ([[no credit]] [aspire account] [WEAK[2008-09-01 14:07:17 +00:00]]) [63] Very Nice Site! Thanx! gas cards to help people with bad credit credit crads for 590 credit score how to get a department store card with bad credit credictcard bad credit no bank acount babies r us bad credit and need a card ([[beginers credit]] [paypal premier] [WEAK[2008-09-01 15:34:25 +00:00]]) [64] Very Nice Site! Thanx! how long does it take to rebuild damaged credit bad credit 1000 credit line cards poor credit lukoil or discover www.credit card poor or bad credit buy land with bad credit ([[equifax credit]] [limited credit] [WEAK[2008-09-01 19:23:27 +00:00]]) [65] Very Nice Site! Thanx! creditcards bad or no credit apply for first premier credit find a visa card with poor credit frist premier card credit www.credict cards/ bad credict ([[sterling bank]] [rebuild credits] [WEAK[2008-09-01 21:26:02 +00:00]]) [66] Very Nice Site! Thanx! pilot gas card visa application chase manahatan credit chase home loanbusiness credit cards chevron gas credit card ([[abn amro]] [cyndi@gmail.com]) [67] Very Nice Site! Thanx! credit card apr credit card applications for people with no credit how to build credit when you have none apply for mastercard credit card mastercard apply ([[band nocredit]] [charisse@gmail.com]) [68] Very Nice Site! Thanx! no credit credit card offers best credit card for fair credit 0 apr balance transfer credit card for no credit people us credit card ([[usbank logo]] [annemarie@gmail.com]) [69] Very Nice Site! Thanx! hotel reward credit cards credit card with 0% balance transfer chase bankcredit card visa 660 credit card no credit checks ([[plains commerce]] [alethea@gmail.com]) [70] Very Nice Site! Thanx! life of balance credit card the best credit cards offers small business credit cards bad credit no transfer fee card mastercard applications ([[millenium bank]] [bethel@gmail.com]) [71] Very Nice Site! Thanx! credit card free transfer high balance credit cards black credit cards credit cards for poor to fair credit bad credit ([[aspire credit]] [debra@gmail.com]) [72] Very Nice Site! Thanx! establish credit history chasebankone creditcard no annual fee credit card offers trying to build credit chase morgage ([[unsured visa]] [colette@gmail.com]) [73] Very Nice Site! Thanx! bad credit approval credit card com bankruptcy credit cards free credit score without credit card .chasecreditcard status ([[credit starting]] [delpha@gmail.com]) [[#comment]] * メタ変数 [9] [[Apache]] などと同じように、[[メタ変数]]は[[環境変数]]として提供されます。 [[CGI/1.1]] で規定されているほとんどのメタ変数を用意してくれます。独自拡張の [CODE(CGI)[[[REQUEST_URI]]]] にも対応しています。 詳しくはソース (>>8) を見て下さい。 [CODE(CGI)[[[HTTP_*]]]] 変数群は、 [CODE(CGI)[[[HTTP_REFERER]]]] 以外は用意しないようです。 [10] 注意しておきたい点としては、 [CODE(CGI)[[[REMOTE_ADDR]]]] と [CODE(CGI)[[[REMOTE_HOST]]]] には常に [CODE(CGI)[[[127.0.0.1]]]] と [CODE(CGI)[[[localhost]]]] が、 [CODE(CGI)[[[SERVER_NAME]]]] と [CODE(CGI)[[[SERVER_PORT]]]] にも常に [CODE(CGI)[localhost]] と [CODE(CGI)[[[80]]]] が入るようになっています。 [CODE(CGI)[[[SEFVER_PROTOCOL]]]] も常に [CODE(CGI)[[[HTTP/1.0]]]] です。 最後の2つは local でない CGI を emulate するためでしょうが、 このおかげで local でない CGI と local CGI を完全に区別する方法はありません。 [11] とはいっても、 local でない CGI と local CGI を区別するのは簡単です。 [CODE(CGI)[[[SERVER_SOFTWARE]]]] には普段の HTTP 要求で [CODE(HTTP)[[[User-Agent]]]] 欄に送る値が入っていますから、これが [CODE(CGI)[w3m]] で始まれば w3m が local CGI 機能を使っていると分かります。 (w3m variant でこの文字列が [CODE(CGI)[w3m]] で始まらなかったら困るかもしれませんが。) [14] 変数 [CODE(CGI)[[[LOCAL_COOKIE_FILE]]]] には、 local [[Cookie]] に使用できるファイルの名前が入ります。 古い版 (2003年1月くらいの版まで) では、 [CODE(CGI)[[[LOCAL_COOKIE]]]] が使われてました。 こちらの変数には[[セッション]]識別子に使える値が入るみたいです。 [12] この他に、 [CODE[W3M_[VAR[*]]]] 変数群から情報を取得することもできます。 [[#comment]] * CGI 頭欄 [13] w3m 独自の [CODE(CGI)[[[w3m-control]]]] 欄が用意されています。 これを使うと任意の機能を実行できます。 [CODE(file)[README.func]] に機能の一覧があります。 この欄を複数個出力すれば、その順に実行できます。 なお、 local CGI スクリプトからではない通常の [[HTTP]] [[応答]]でこの欄は認識されません。[WEAK[されるとしたら危険なことに。。。]] [[#comment]] * 参考文献 - [7] ''w3m manual'' - [8] ''w3m/w3m/local.c'' : 実装のソース。 - [15] : 実際の local CGI を使ったスクリプトがありますから、参考になるでしょう。 - [6] w3m-990406 以降で実装されている。 - [3] w3m の local CGI 機能 - [4] w3m の local CGI その2 - [5] - [16] あとは 2ch の w3m スレの話題にも結構上がります。スクリプトが投稿されていたりもするので参考になるかも。 [[#comment]] * メモ [17] [CITE@en[The ELinks Manual]] ([[Petr Baudis, Jonas Fonseca Madsen, Miciah Dashiel Butler Masters]] 著, [CODE[2007-03-18 16:03:15 +09:00]] 版) ([[名無しさん]])