Invoking a CGI Program

reference: [url]http://devedge-temp.mozilla.org/library/manuals/1998/htmlguide/tags17.html[/url]

[b]Invoking a CGI Program[/b]
You can use URLs to invoke CGI programs. A CGI program runs on a a server, processes arguments sent by the URL, and returns data to the browser. It is beyond the scope of this reference to provide details of CGI programming, but many fine books are available on the subject, and also lots of information is available on the web.

To specify a URL that invokes a CGI program, specify the location of the CGI program, followed by a query string which contains the arguments for the program. A query string consists of a question mark, followed by the name/value pairs to be submitted to the program. Each name/value pair is separated by an &. Use the URL-encoded value %20 to indicate white spaces and %0A to indicate new lines.
The following example invokes the program "compute.cgi" that takes three arguments. The value of the argument val1 is 25, val2 is 39, and text is "how now brown cow".

http://www.somecompany.com/cgi-bin/compute.cgi?val1=25&val2=39&text=how%20now%20brown%20%cow
Note that in the above example there should be no line breaks; the line break shown is for readability only.

[b]More good references about invoking CGI:[/b]
[url]http://www.cs.cf.ac.uk/Dave/PERL/node193.html[/url]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值