I do not want to show username/password openly.

Define "openly".

If you need the user's web browser to retrieve the password-protected content from the password-protected site, then the user's web browser has to have the username and password, so ipso facto the user has the ability to see it as well.

There are various cheap tricks you can pull to (try to) conceal this fact from users who don't understand computer networks very well, but fundamentally the information will be _available_ to the user, and any user who knows the difference between an HTTP header and a document head element is going to be able to figure it out. If that's good enough for your purposes, say so, because otherwise most people on here are going to assume it's probably not.

If you need the user to see the password-protected content but _not_ be able to see the username and password, then the content needs to be retrieved from the password-protected server not by the user's web browser but by a system beyond the user's control, such as your website.


Sanity? Oh, yeah, I've got all kinds of sanity. In fact, I've developed whole new kinds of sanity. You can just call me "Mister Sanity". Why, I've got so much sanity it's driving me crazy.

In reply to Re: Go to Website that requires Login by jonadab
in thread Go to Website that requires Login by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.