- From: Matt Bohnsack <bohnsack@eai.com>
- Date: Tue, 26 May 1998 12:15:58 -0500 (CDT)
- To: www-lib@w3.org
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 code... 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 Reading... Please enter username: (host1) user1 Password: **** Read (4% of 24K) Read (67% of 24K) Looking up host2 Contacting host2 Reading... Please enter username: (host2) user2 Password: **** Read (0% of 1K) Reading... Reading... Reading... Contacting host1 Reading... Authentication failed - retry? (y/n) y Please enter username: (host1) (RETURN for [user1]) user1 Password: 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