Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2005
    Posts
    47

    Loading a webpage the requires a password

    I’m developing an application that will use Autplay Media Studio in conjunction with a website that requires a password. I’d like to “automate” the login process so that a user enters his or her user name and password once. This data would be stored in a text file on the user’s hard drive and then called whenever a webpage is loaded by autoplay. Is this something that is doable using the HTTP.submit action?

  2. #2
    Join Date
    May 2005
    Posts
    1,115
    Yes it is. I found the solution on this forum not long ago.
    However, this depends on the authentication type your server is using.

    This one is for HTTP Password Authentication type:

    Code:
    --user data
    tAuthData = {};
    tAuthData.UserName = INIFile.GetValue(_SourceFolder.."\\settings.ini", "httpsettings", "username");
    tAuthData.Password = INIFile.GetValue(_SourceFolder.."\\settings.ini", "httpsettings", "password");
    -- intialize a connection with a server to automate logon
    nOnlineCheck = HTTP.GetFileSize("http://yourpage.com/someimage.jpg", MODE_BINARY, 20, 80, tAuthData, nil, nil);
    -- load the page from the server
    Web.LoadURL("Web1", "http://yourpage.com");
    Please note that intialization is requred only once per application run.
    Last edited by bule; 03-15-2006 at 03:39 PM.
    Never know what life is gonna throw at you.
    (Based on a true story.)

Similar Threads

  1. Password Protect.
    By EmacK in forum AutoPlay Media Studio 6.0
    Replies: 9
    Last Post: 11-14-2005, 12:55 PM
  2. Adding Password Protection
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-03-2003, 03:25 PM
  3. Reoccurring password
    By Bruce in forum AutoPlay Media Studio 4.0
    Replies: 6
    Last Post: 06-04-2003, 04:09 PM
  4. Password
    By Bruce in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 05-31-2003, 05:52 PM
  5. HOWTO: Add Password Protection to Your Application
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 03:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts