Unix & Shell-Programmierung: CGI Argumente |
...> telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /cgi-bin/test.cgi?VAR1=123&VAR2=xyz HTTP/1.0
HTTP/1.1 200 OK Date: Thu, 23 Nov 2000 11:04:25 GMT Server: Apache/1.3.12 ... Connection: close Content-Type: text/plain the pure query string VAR1=123&VAR2=xyz the cgi arguments VAR1 = "123" VAR2 = "xyz" the global tcl variable cgi_argl={VAR1 123} {VAR2 xyz} ...
the environment ...
env(QAVAR1) = 123 env(QAVAR2) = xyz env(QUERY_STRING) = VAR1=123&VAR2=xyz env(REMOTE_ADDR) = 127.0.0.1 ...
env(REQUEST_METHOD) = GET env(REQUEST_URI) = /cgi-bin/test.cgi?VAR1=123&VAR2=xyz env(SCRIPT_FILENAME) = /usr/local/httpd/cgi-bin/test.cgi env(SCRIPT_NAME) = /cgi-bin/test.cgi ...
Connection closed by foreign host.
...>
get3.exp: das expect-Skript für dieses Beispiel |
Letzte Änderung: 14.02.2012 | © Prof. Dr. Uwe Schmidt |