W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2003

RE: Proxy authentication in libwww

From: <sbel@newmail.ru>
Date: Sat, 16 Aug 2003 08:16:35 -0400 (EDT)
Message-ID: <20030816121613.2236.qmail@flock1.newmail.ru>
To: www-lib@w3.org
Cc: fjlopez@bba.buenayre.com.ar





Hi Francisco,

<skip>

>The problem is that the proxy is configured to >ask for a user/password, but
>the application never ask it and returns with no >data. The environment
>variable for the proxy is settled and I'm >debugging the application and
>libwww try to use it.
>
>In http.c, after the connection is established >with the proxy, in
>HTTPNextState() the status is 407 which is >correct, but it seems that
>despite this there is no call to the callback >settled in the main
>program for the user defined handler
>(HTAlert_add(PromptUsernameAndPassword, >HT_A_USER_PW).

I try to write the same code for Linux (RedHat9; gcc 3.2.2) and reveal the same problem:
In main function were called 

HTProfile_newNoCacheClient(APP_NAME, APP_VERSION);

HTProxy_add( "http", MY_PROXY );
HTNoProxy_add( "localhost", NULL, 0 );

HTAlert_deleteOpcode( HT_A_USER_PW );
HTAlert_add( PromptUsernameAndPassword, HT_A_USER_PW );

HTAlert_setInteractive( YES );

....

After that, in main, I've tried to connect to some host in Internet (http://www.hotmail.com e.g.) and always received (over traces) "407: Proxy authorization required". 

It looks like application hangs on HTEventList_loop().
There is no call to the callback settled in the main.

When I try to connect to http://localhost (NoProxy) - I receive user/password dialog for my local apache server, that works normally.

So wassup?! Why this happens?
I see I'm not a first person who ask this question.
So does anybody find a solution to this problem already?!

Thanks in advance!

Sergey.
__________
www.newmail.ru -- Новая Почта для нового поколения.
Received on Monday, 18 August 2003 11:17:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:43 GMT