BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: TIdHTTP proxy authentication

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Kim Pedersen
Guest





PostPosted: Thu Sep 15, 2005 8:23 pm    Post subject: Re: TIdHTTP proxy authentication Reply with quote



Hi


I have tried too without sucess, and I found a couple of
pages on internet saying that it is not working.


you have to remember to add "IdAuthenticationSSPI" to your uses
if you want to use NTLM.


there are also some badness in the idhttp.
I will try to clear out here:
****SNIP Idhttp.pas (protocols directory) ***
function DoOnProxyAuthorization
...
...
if not Assigned(ProxyParams.Authentication) then
begin
// Find which Authentication method is supported from us.
i := 0;
while i < AResponse.ProxyAuthenticate.Count do
begin
S := AResponse.ProxyAuthenticate[i];
try
Auth := FindAuthClass(Fetch(S));
// break; //<<-- take this away otherwise
//the loop will always jump out on first run.

except
end;
inc(i);
end;


if Auth=nil then //use instead of next line
//since if you find no authenticate.

//next line will work if you take away
// the break in loop , but it still much more
// clean to test on auth

// if i = AResponse.ProxyAuthenticate.Count then
begin
result := false;
exit;
end;

if Assigned(FOnSelectProxyAuthorization) then
begin
OnSelectProxyAuthorization(self, Auth, AResponse.ProxyAuthenticate);
end;

ProxyParams.Authentication := Auth.Create;
end;




Best regards
Kim Pedersen





On Thu, 15 Sep 2005 10:49:11 +0200, Márta Csaba
Quote:
Hi ALL,

I have problem with TIdHTTP proxy authentication. I wrote some letters to
news groups but I haven't got any answers.

I use D7 Enterprise and Indy 10. The TIdHTTP works only with the Basic
auhtentication, but the Digest, NTLM fails. I use squid proxy server.

source code:
HTTP.ProxyParams.ProxyServer := PServerName;
HTTP.ProxyParams.ProxyPort := 3128;
HTTP.ProxyParams.ProxyUsername:= PUser;
HTTP.ProxyParams.ProxyPassword:= PPsswd;

What sould I do to work the authentication correctly?
Can I use Kerberos protocoll with TIdHTTP during proxy authentication
(win2003 ISA proxy)?

Best Regards
Csaba Márta





--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.