W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1998


From: Matt Bohnsack <bohnsack@eai.com>
Date: Tue, 26 May 1998 12:15:58 -0500 (CDT)
To: www-lib@w3.org
Message-ID: <Pine.SGI.3.96.980526121413.19165G-100000@goliath.eai.com>
Hello, I am trying to create a web client that stores basic authentication
information for each realm it visits.  When I run the following chuck of
int main (int argc, char ** argv)                                                                                                                             
    HTRequest *request;                                                                                                                                       
    int ret = 0;                                                                                                                                              
    HTProfile_newPreemptiveClient("test", "1.0");                                                                                                             
    request = HTRequest_new();                                                                                                                                
    ret = HTLoadToFile( "http://host1/", request, "one" );                                                                                                    
    ret = HTLoadToFile( "http://host2/", request, "two" );                                                                                                    
    ret = HTLoadToFile( "http://host1/", request, "three" );                                                                                                  
    return 0;                                                                                                                                                 
I get this:                                                                                                                                                   
Looking up host1                                                                                                                                              
Contacting host1                                                                                                                                              
Please enter username:  (host1) user1                                                                                                                         
Password: ****                                                                                                                                                
Read (4% of 24K)                                                                                                                                              
Read (67% of 24K)                                                                                                                                             
Looking up host2                                                                                                                                              
Contacting host2                                                                                                                                              
Please enter username:  (host2) user2                                                                                                                         
Password: ****                                                                                                                                                
Read (0% of 1K)                                                                                                                                               
Contacting host1                                                                                                                                              
Authentication failed - retry? (y/n) y                                                                                                                        
Please enter username:  (host1) (RETURN for [user1]) user1                                                                                                    
Read (0% of 1K)                                                                                                                                               
The '(RETURN for [user1])' seems to say that user/password for realm host1
is being stored somewhere.                                                                                                                                             
How do I make the client send the user/password pair previously entered
for realm host1?  It is possible to do this for as many realms as the 
client visits?  thanks - matt
Received on Tuesday, 26 May 1998 13:14:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:48 UTC