I am accessing a "secured"
EX. "members area" document thru http::Request by sending a "FAKE" http::header "HTTP_REFERER"
field to gain initial access "im tricking the site". Now after i gain access, my CGI script also returns
$ENV{HTTP_COOKIE} for which has the CURRENT user & password combo. I then split it up
to get the username and password into two variables called $username & $password.
Is there a way to take the extracted $username & $password variables and set them using
http auth "not sure if im saying it right"
in cgi thru a cookie or something? If there is a better way, I'll take that too.
In so many words: Set the user and password
"until end of session" so that i can forward or hyperlink to another URL
inside the "protected" site WITHOUT making the surfer enter a user&password combo AND without
using my cgi script to access it.
Is there a way to do this IN CGI? "please don't refer me to apache; I cannot set that"
"If possible & time permitting, please include a written code or a link to where one is."
Thank You "Monks" In Advance!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.