Re: KDE 3.2-beta2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 29 September 2002 14:26, Paul Cupis wrote:
Second attempt:
#! /usr/local/bin/python
import os, string, ip
QUERY_STRING = os.environ["QUERY_STRING"]
PATH_INFO = os.environ["PATH_INFO"]
protocol = os.environ["SERVER_PROTOCOL"]
request_uri = os.environ["REQUEST_URI"]
where = string.index(request_uri, "htbin/cgiwrap/pgd/")
newuri = "http://" + ip.ip + request_uri[where+17:]
print protocol, ' 302 Found'
print 'Location: ', newuri'
print
And just make sure the file is called nph-foo.cgi (it should start with nph-
for most servers to automatically set non-parsed-headers - no server config
necessary?)
Paul Cupis
- --
paul@cupis.co.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9lwQ0IzuKV+SHX/kRAksNAJ48blfB42o2TvLxYE/nnyBu3URarwCeLudy
+sDYv/8gEvEXQfz5mJuYMNc=
=mNi5
-----END PGP SIGNATURE-----
Reply to: