 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Stas Guest
|
Posted: Fri Nov 28, 2003 8:26 pm Post subject: Http Authentication |
|
|
Hi all,
I have this application for many years and it's been working since Winshoes
6. When I compile it with Indy 9 it keeps throwing at me the "Connection
Closed Gracefully" error.
My server requires an Authenticaion.
I'm using the following settings:
IdHTTP1.ProtocolVersion = pv1_0
IdHTTP1.Get('http://10.9.9.1:1983/.......', , ssResult); command
IdHTTP1.Request.Username := 'username';
IdHTTP1.Request.Password := 'password';
all the other parameters are defaults. As I said this code worked for years.
I also tried IdHTTP1.Request.BasicAuthentication := true ---- the same
result;
When I remove authentication requirement from the server, everything works
ok.
So obviously something's wrong with the authentication.
Any ideas?
Thanks in advance.
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Sat Nov 29, 2003 12:30 am Post subject: Re: Http Authentication |
|
|
"Stas" <n/a> wrote
| Quote: | When I compile it with Indy 9 it keeps throwing at me the
"Connection Closed Gracefully" error.
|
Are you, by chance, running the application in the debugger at the time? If
so, that is normal. Indy uses exceptions internally, and the debugger is
designed to catch all exceptions before the application does. Simply press
F9 to pass the exception back to the application for normal processing.
Gambit
|
|
| Back to top |
|
 |
EJP Guest
|
Posted: Sat Dec 06, 2003 1:34 am Post subject: Re: Http Authentication (TIdHttp) |
|
|
"Stas" <n/a> wrote:
| Quote: | Hi all,
I have this application for many years and it's been working since Winshoes
6. When I compile it with Indy 9 it keeps throwing at me the "Connection
Closed Gracefully" error.
My server requires an Authenticaion.
I'm using the following settings:
IdHTTP1.ProtocolVersion = pv1_0
IdHTTP1.Get('http://10.9.9.1:1983/.......', , ssResult); command
IdHTTP1.Request.Username := 'username';
IdHTTP1.Request.Password := 'password';
all the other parameters are defaults. As I said this code worked for years.
I also tried IdHTTP1.Request.BasicAuthentication := true ---- the same
result;
When I remove authentication requirement from the server, everything works
ok.
So obviously something's wrong with the authentication.
Any ideas?
Thanks in advance.
|
Stas, is your problem resolved? I am having a similar problem, my app worked
fine in Indy8, failed with 9.00.11 and i just DLed 9.00.14 and it still fails.
I can't figure out where to put my data in Indy9, Http1.Request.Username/Password
or Http1.Request.*Authentication*.Username/Password. And whats the significance
of Request.BasicAuthentication? Its undocumented, but i see it being tested in
TIdRequestHeaderInfo.SetHeaders.
Either way, as i step thru TIdRequestHeaderInfo.SetHeaders i watch it create a
RawHeaders entry based on a null username/password.
It appears the related .hlp files have not been updated since I8, as they are referencing
nonexistent properties like Request.ProxyServer as opposed to I9's ProxyParams.ProxyServer.
TIA,
Jay
|
|
| Back to top |
|
 |
Dany Rosseel Guest
|
Posted: Mon Dec 15, 2003 10:23 am Post subject: Re: Http Authentication |
|
|
Hi,
Please have a look at http://users.skynet.be/bk296578/Dro/Delphi/ "Web
Download". I also had some of your problems (and also with "proxy's").
Perhaps this can help you.
Kind Regards,
--
Vriendelijke groeten,
Dany Rosseel
E-mail: [email]dany_rosseel (AT) advalvas (DOT) be[/email]
Web Site (home) : http://users.skynet.be/bk296578/Dro/
Web Site (Delphi): http://users.skynet.be/bk296578/Dro/Delphi
----------------------------------------------------------------------------
--------------------------
"Stas" <n/a> schreef in bericht news:3fc7ad70$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Hi all,
I have this application for many years and it's been working since
Winshoes
6. When I compile it with Indy 9 it keeps throwing at me the "Connection
Closed Gracefully" error.
My server requires an Authenticaion.
I'm using the following settings:
IdHTTP1.ProtocolVersion = pv1_0
IdHTTP1.Get('http://10.9.9.1:1983/.......', , ssResult); command
IdHTTP1.Request.Username := 'username';
IdHTTP1.Request.Password := 'password';
all the other parameters are defaults. As I said this code worked for
years.
I also tried IdHTTP1.Request.BasicAuthentication := true ---- the same
result;
When I remove authentication requirement from the server, everything works
ok.
So obviously something's wrong with the authentication.
Any ideas?
Thanks in advance.
|
|
|
| Back to top |
|
 |
|
|
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
|
|