[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]])
[[#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]] 版)
([[名無しさん]])