homeUnix & Internet Unix & Shell-Programmierung: Die GET Methode Prof. Dr. Uwe Schmidt FH Wedel

Die GET Methode

weiter

weiter

GET /cgi-bin/test.cgi HTTP/1.0

...> telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /cgi-bin/test.cgi HTTP/1.0
 
HTTP/1.1 200 OK
Date: Thu, 23 Nov 2000 09:55:44 GMT
Server: Apache/1.3.12 ...
Connection: close
Content-Type: text/plain
 
the pure query string
the cgi arguments
the global tcl variable
 
cgi_argl=
 
the script name
 
argv0='/usr/local/httpd/cgi-bin/test.cgi'
 
the list of arguments
 
argv = ''
 
the working directory
 
cwd='/usr/local/httpd/cgi-bin'
 
the environment
 
env(DOCUMENT_ROOT) = /usr/local/httpd/htdocs
env(GATEWAY_INTERFACE) = CGI/1.1
env(HOSTNAME) = si
env(HOSTTYPE) = i386
env(MACHTYPE) = i386-suse-linux
env(OSTYPE) = linux
env(PATH) = /sbin:/bin:/usr/sbin:/usr/bin
env(PWD) = /usr/local/httpd/cgi-bin
env(QUERY_STRING) =
env(REMOTE_ADDR) = 127.0.0.1
env(REMOTE_PORT) = 1592
env(REQUEST_METHOD) = GET
env(REQUEST_URI) = /cgi-bin/test.cgi
env(SCRIPT_FILENAME) = /usr/local/httpd/cgi-bin/test.cgi
env(SCRIPT_NAME) = /cgi-bin/test.cgi
env(SERVER_ADDR) = 127.0.0.1
env(SERVER_ADMIN) = root@localhost
env(SERVER_NAME) = si.fh-wedel.de
env(SERVER_PORT) = 80
env(SERVER_PROTOCOL) = HTTP/1.0
env(SERVER_SIGNATURE) = 
Apache/1.3.12 Server at si.fh-wedel.de Port 80
 
env(SERVER_SOFTWARE) = Apache/1.3.12 ...
env(SHELL) = /bin/bash
env(SHLVL) = 0
env(TERM) = dumb
env(UNIQUE_ID) = OhzpoMMlVDYAAAHDD98
 
 
Connection closed by foreign host.
...>

get1.exp: das expect-Skript für dieses Beispiel


Letzte Änderung: 14.02.2012
© Prof. Dr. Uwe Schmidt
Prof. Dr. Uwe Schmidt FH Wedel