RE: Proxy authentication in libwww

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 UTC