W3C home > Mailing lists > Public > www-lib@w3.org > October to December 1999

Re: Library stalling trying to retrieve password protected URLs

From: K. O. Linn <linn@informatik.fh-wiesbaden.de>
Date: Tue, 23 Nov 1999 08:59:03 +0100 (MET)
Message-Id: <199911230759.dAN7x3N00547@gate1.informatik.fh-wiesbaden.de>
To: www-lib@w3.org
if you look at the commandline Example (HTLine.c), you might find what you want.
You can use this programm in an
interactive and non-interactive mode. I ported this code to the robot
programm. It worked after I added the the profile statement to the existing one:
    /* Initiate W3C Reference Library with a robot profile */
--->    HTProfile_newNoCacheClient(APP_NAME, APP_VERSION);	//wichtig für
Passwort Abfrage!!!!!
    HTProfile_newRobot(APP_NAME, APP_VERSION);

This might be not perfect, but it works.


At 22:15 17.11.99 -0500, you wrote:
>Greetings again libwww'ers,
>When trying to load URLs that are password protected without specifying a
>password, libwww seems to stall. Using code posted to this list on June 17
>by Raffaele Sena <raff@nuvomedia.com> (BTW, thanks :) ), I've got a
>not-so-interactive application supplying the username and password when
>required. This works exactly as I'd expect. However, if I don't have a
>username and password to give, libwww ends up calling select() and waiting
>on a socket that doesn't become active again. I'd expect to get a 401 error
>The trace shows the normal chain of events: Request, 401 Error, After
>Filter, look for name and password, request again. The second request never
>really gets underway if a name and password aren't found.
>Again, this is a part of the library I don't understand very well at all, so
>if anyone could help me out or give me some pointers, I'd be very
>Sam Couter                                             sam@topic.com.au
>Internet Engineer
>tSA Consulting
Received on Tuesday, 23 November 1999 02:59:05 UTC

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