Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #66757
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <hobie.audet@comcast.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; '(so': 0.07; 'subject:Error': 0.07; 'subject:getting': 0.07; 'x-mailer:qualcomm windows eudora version 7.1.0.9': 0.07; 'executed': 0.09; 'indicates': 0.09; 'scripting': 0.09; 'python': 0.11; 'bug': 0.12; 'language.': 0.14; 'windows': 0.15; '"test"': 0.16; 'displaying': 0.16; 'far)': 0.16; 'fetch': 0.16; 'from:addr:comcast.net': 0.16; 'received:69.251': 0.16; 'received:76.96': 0.16; 'received:mail.comcast.net': 0.16; 'should.': 0.16; 'fix': 0.17; 'variable': 0.18; 'advance.': 0.19; 'file,': 0.19; 'skip:p 40': 0.19; 'import': 0.22; 'directory.': 0.24; 'received:comcast.net': 0.24; 'environment': 0.24; 'script': 0.25; 'installed': 0.27; 'point': 0.28; 'function': 0.29; 'skip:( 20': 0.30; "i'm": 0.30; 'getting': 0.31; 'cgi': 0.31; 'correctly.': 0.31; 'directory,': 0.31; 'skip:= 20': 0.31; 'file': 0.32; 'running': 0.33; 'skip:& 30': 0.33; 'could': 0.34; 'problem': 0.35; 'created': 0.35; 'problem.': 0.35; 'anybody': 0.35; 'beyond': 0.35; 'good.': 0.35; 'but': 0.35; 'there': 0.35; 'words,': 0.36; 'charset:us-ascii': 0.36; 'thanks': 0.36; 'should': 0.36; 'being': 0.38; 'received:76': 0.38; 'server': 0.38; 'skip:& 10': 0.38; 'to:addr :python-list': 0.38; 'fact': 0.38; 'anything': 0.39; 'skip:& 20': 0.39; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'called': 0.40; 'skip:u 10': 0.60; 'interested,': 0.61; 'browser': 0.61; 'entire': 0.61; 'simple': 0.61; "you're": 0.61; 'back': 0.62; 'here': 0.66; 'home': 0.69; 'click': 0.77; 'message-id:invalid': 0.79 |
| X-Mailer | QUALCOMM Windows Eudora Version 7.1.0.9 |
| Date | Thu, 20 Feb 2014 09:53:36 -0500 |
| To | python-list@python.org |
| From | Hobie Audet <Hobie.Audet@comcast.net> |
| Subject | Error getting REMOTE_USER Environment Variable |
| Mime-Version | 1.0 |
| Content-Type | multipart/alternative; boundary="=====================_678767750==.ALT" |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1392907995; bh=+zk2ww5DCY7wiFtkaTypWooPsdJaZ4yohcFLcwTR8Dw=; h=Received:Received:Date:To:From:Subject:Mime-Version:Content-Type; b=XIIaXWh1t0CeQ0oVRZbcY9fqz17z8YV/g0LcaohbKfjn8HXDGkOwuJMtx1Is1I6Wv mE7Kma8kWrBLbTZp2Uh9BUOKqS00dJ6QUyRWN0ZgtOv4TUAC9mEf1VhCpdqTkOKunk FmCS0doYusqsTGllo8XCLp/rs90FuDXIdy7X2OG3T6kGIjgOWPBRuhrPPWJtWag9r8 HXuSiqKMNdrjuE5cNMrkQro0uoKeyiTGCiFipRBa6Q+X1w9kUx+UXU5/Rhsk9ldkrJ OL3yV+i+deqZUk2GfITW7L85Kck2D+lUY3KGiB9fQXA7RZZb82fp9Fv2papkTodgZk q57vccehMt9RA== |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.7186.1392908069.18130.python-list@python.org> (permalink) |
| Lines | 94 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1392908069 news.xs4all.nl 2837 [2001:888:2000:d::a6]:38989 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:66757 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
I'm running the Abyss Web Server X1 (v 2.9.0.1) on a Windows XP Home
(SP3) system and am using Python 3.3 for a scripting language. I'm
having a problem getting the environment variable
"REMOTE_USER". Here's the situation:
1. I have created a user under Abyss. The userid is "userxyz"..
2. I have created a directory under htdocs called "Test" and using
the Abyss console I have password protected it.
3. In the "Test" directory, there is no "index.html" file but there
is an "index.py" file, so that should get executed when I access the
"Test" directory.
4. If I start up my web browser and point it to "localhost/Test", I
get challenged for user authentication, as I should.
5. I enter the userid ("userxyz") and its password and click the
"Log in" button. Authentication succeeds. So far, so good.
6. The "index.py" script is launched. It's only function (so far)
is to fetch the "REMOTE_USER" environment variable and echo it back to me.
7. What it echoes back is "userxyzuserxyz". In other words, the
REMOTE_USER value is repeated.
In case you're interested, here is the entire "index.py" script:
import os
userid =os.environ["REMOTE_USER"]
print("Content-type: text/html")
print()
print("<HTML><BODY>" + userid + "</BODY></HTML")
That's about as simple as anything could be. The fact that the
script is displaying anything at all indicates to me that my Python
cgi support is installed correctly and that the script is being
executed correctly. By why the "REMOTE_USER" value is doubled is
beyond my understanding. Is this a bug in the os package that comes
with Python 3.3? Anybody got a fix for it?
By the way, if I try to fetch "AUTH_USER", I get the same problem.
Thanks in advance.
Hobie Audet
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Error getting REMOTE_USER Environment Variable Hobie Audet <Hobie.Audet@comcast.net> - 2014-02-20 09:53 -0500 Re: Error getting REMOTE_USER Environment Variable John Gordon <gordon@panix.com> - 2014-02-20 16:19 +0000
csiph-web