Menu

username/password

Help
ximuntxo
2005-04-07
2013-01-11
  • ximuntxo

    ximuntxo - 2005-04-07

    is there any way of being asked for username/passwd when accessing a web page?
    thanks

     
    • Riccardo Mottola

      Depends on what your goal is.
      Mostly this is done through a form in a page or similar techniques that do not need any special server support,except for CGI or some other way to process the data.

      If on the other hand you intend "realms", that is the server makes come up a dialog box in the browser if you access a page that matches a specific URL (usually it is done by substring matching in the path, both directories and and filenames [1]) then the answer is no, pico server doesn't support it. I have seent his rarely used lately though, it was more used in the first years of internet. Today it is more releagetd as a simple mean of authentication for embedded devices like small routers. I think that it would not be difficult to add this to pico server, especially if you don't need a full-blown realms support but just a single password/string.

      cheers,
         R. Mottola

      --
      [1] : for pattern matching I mean that if you define "XYZ" to be the match string for a realm, you would be asked for authentications for pages like:
      http://myserv/dirXYZ/file1.html
      http://myserv/dir/fileXYZ.html

       
    • huales

      huales - 2005-06-10

      R. Mottola,
            Can you give me a cgi-bin demo with pico server? My E-mail address: yunjz@163.com
            Thank you.

      Hs

       

Log in to post a comment.

MongoDB Logo MongoDB