I have a webserver, and on this server I am offering some content that is restricted. Users must log in via digest authentication. This woks fine, since till now all users saw the same content. But now I want to write a cgi-script in Perl, that needs to know the user's name to be able to provide individual content for each user. How can this be be done? How can I get the digest-login-name using perl?
Get username on Server that uses digest authentication (Perl)
324 views Asked by Hubert Schölnast At
1
There are 1 answers
Related Questions in PERL
- Perl Regex for converting query strings
- Cross compiling perl for Android ld.lld: error: unable to find library -lpthread
- Regexp to remove small numbers and leave large ones
- `df` command not capturing entire output in perl
- Webmin CentOS7 AWS backup errors - perl(S3::AWSAuthConnection) can't be installed
- How to ignore perm errors with Path::Tiny 'visit'? (Windows)
- Why does setting `*\` to a scalar (string) reference not result in auto printing
- Regex for deconstructing SQL where statement
- Random characters in DS record from Net::DNS:RR when calling print/string
- Perl with Selenium: cannot save the Web page with Ctrl+S
- openssl pbkdf2 and perl
- Strawberry Perl using a separate winlibs distro
- Perl / Undefined value as a HASH reference when running SNMP queries
- Timestamp with timezone: works with isql but not with DBD::Firebird
- Slurping a file ... syntax error - example from perldoc
Related Questions in CGI
- Save radio value in a cookie, Python CGI Programming
- Convert single-line .CGI to Multiline in Powershell
- Flask and Perl on Apache - can they coexist on Port 443?
- Redirect video resource on Apache Tomcat
- Shellshock command on pWnOS 1.0 doesnt work
- Using Apache to Proxy HTTP Requests to HTTPS for Legacy Win32 EXE without SSL Support
- Unable to run cgi program on apache2 server (with some mod_jk configuration)
- New Apache2 and Virtual Host install showing plain text for cgi directory
- Python in web. Cgi, flask and py-script
- What is the application of CGI, does it still in use?
- Delphi CGI SQL query runs on one machine but not the other
- newlines containing text to SQLite in windows console
- lighttpd return 403 for python script that had been working on older installs
- I get a 404 error while trying to open my python file using apache cgi
- .htaccess redirect dynamic URLs to new system
Related Questions in DIGEST-AUTHENTICATION
- Why does digest query in fopen return a response only 1 out of 50 times?
- Node.js - Digest Authentication - Incorrect Password
- Spring WebClient digest authentication
- Require client Digest auth in zookeeper
- nginx-digest always return 401
- Need to HTTP proxy MJPEG streams from multiple sources that require digest auth, through a single HTTP endpoint?
- Digest-authentication with libcurl: receiving two responses. Any way to only receive the second one?
- Apache Kafka SASL_SSL configure failure ( ERROR SASL authentication failed using login context 'Client'.)
- Trying to log in to Tomcat Manager using encrypted password generated using digest.bat
- DigestAuthentication doesn't work with httpx
- Why I obtain MailKit.Net.Imap.ImapProtocolException: 'invalid digest response' during Authentication phase with MailKit?
- Migrating RestTemplate with digest Authentication from httpclient (4.x) to 5.2 - DigestScheme overrideParamter not found
- DigestAuth using dart getting 401
- curl digest auth is failing
- Using Onvif PTZ on IP camera with digest in C#
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
See the documentation for
mod_cgi:http://httpd.apache.org/docs/2.0/mod/mod_cgi.html
The user name is stored in the environment variable called
REMOTE_USER.Perl stores environment variables in the
%ENVhash.