Hello,
I'm trying to grab the http auth username in order for a user to be able to download a file from a basic http auth protected folder as follows:
Why in your opinion is this happening?
Is it due to the way of "<metahttp-equiv .." that is obstructing this, in a way that when this statemnt executes it sends new headers lossing existing env vars?
I'm trying to grab the http auth username in order for a user to be able to download a file from a basic http auth protected folder as follows:
realfile = form.getvalue('realfile') authuser = os.environ.get( 'REMOTE_USER', 'Άγνωστος' ) #here we enter in case the user selected a file fro download if realfile: # Give user the file he requested print( '''<meta http-equiv="REFRESH" content="5; URL=../data/files/%s">''' % realfile )
Why in your opinion is this happening?
Is it due to the way of "<metahttp-equiv .." that is obstructing this, in a way that when this statemnt executes it sends new headers lossing existing env vars?