Login  
Search All Forums
Dart Home | PowerTCP Web Enterprise for ActiveX | Custom Development Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web Enterprise for ActiveX
Topic: Support for NTLM
HimanshuRajurkar

From: Indore, MS India
Posts: 9
Member Since: 06/01/02
posted June 19, 2002 8:39 AM

I am using WebASP control of Dart Web Interprise Tool. Do you support NTML (NT Challange/Response) authentication?
Alex Gladshtein



From: Rome, NY USA
Posts: 131
Member Since: 12/27/00
posted June 19, 2002 8:51 AM

Hello,
At the present time the WebASP control does not support NTLM, although we are exploring the option. Microsoft is not very supportive of NTLM at the moment and discourages new development based on that approach with the exception of Microsoft legacy support. The Web control, which is WinInet-based and part of the Web Enterprise package, will handle NTLM, but only with a Get command.

Regards,
Alex Gladshtein
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 19, 2002 9:11 AM

Hi,
To expand a bit on Alex's answer, Head commands are also supported. If you need to send other commands (for example, Post) through NTLM, you can first send a Head or Get to establish the connection through the NTLM proxy, and then go ahead and do your Post.
-ken
HimanshuRajurkar

From: Indore, MS India
Posts: 9
Member Since: 06/01/02
posted June 20, 2002 3:14 AM

Hi,
Thanks for your reply. Actually I have all the headers of the page that is placed on the site having NTLM. Can I set those headers in "WebASP1.request.header.add" and by that way could I fetch the data. I did this but no luck. Can you tell me some alternate way to do it?

Thanks
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 20, 2002 9:27 AM

Hi,
No, sorry, we are unaware of the steps needed to accomplish this with WebAsp. The alternative is to use the Http control, as described in the previous posts.
-ken
HimanshuRajurkar

From: Indore, MS India
Posts: 9
Member Since: 06/01/02
posted June 21, 2002 8:06 AM

Hi, Thanks again but can you please help me in using Dart Web Control? I was using the Dart WebASP dll in my own DLL and then referencing my dll from the ASP page. Can I do the same thing with Dart Web dll?
Actully as per your suggessions Dart Web control is working fine in VB for NTLM sites but when I used this dll in ASP pages it didn't work. Can you suggest something?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 21, 2002 11:12 AM

Hi,
Though I have never tried through NTLM proxies, I have been able to successfully use dlls that reference the Web control in Asp scripts.
Having said that, one of the primary reasons we created the WebAsp control was because Microsoft advises against using Wininet in Asp scripts, which it deems as unsafe in a server-side environment.
When you say "it doesn't work," what happens?
Thanks,
-ken


HimanshuRajurkar

From: Indore, MS India
Posts: 9
Member Since: 06/01/02
posted June 22, 2002 1:02 AM

Hi, Again thanks for quick reply. I am very happy with the news that you have tried Web Control in ASP.
Actually I am using GetEx method to fetch the data. If I use this in VB, the username and password parameters are Optional, whereas in ASP these are mendatory. Although I gave these parameters I got the error parameter 1 not valid(something like this). Now When I use Get method it gives me the error of "401 Access denied"(as I m using NTLM). I am more trying on it and will let you know the results. But if you can test the WebControl in ASP on NTLM then it will be very nice of you.
Thanks
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 24, 2002 10:45 AM

Hi,
Actually, they are optional in ASP as well (only the first 2 params are required). Also, the first param should be a DartStrings. For example, the script below should work.
-ken

<%
Dim http
set http = Server.CreateObject("Dart.Http.1")

dim reqHeaders
set reqHeaders = Server.CreateObject("Dart.DartStrings")

dim content
content= ""
http.Url = "http://www.dart.com"
http.GetEx reqHeaders, content

Response.Write content
%>
HimanshuRajurkar

From: Indore, MS India
Posts: 9
Member Since: 06/01/02
posted June 25, 2002 1:20 AM

Hi,
I did that but got the same error. Anyways leave it for now. Can you help me in one more problem that I am facing.
Actually I am working in some perticular session that my site has created for me. I was using the same session while using WebASP by providing the sessionID. Now when I use Web control I have to provide the username and password to fetch the data coz my site is NTML site. Now when I provide the username and password, Web control creates new session and I want to work in the old session in which I was calling Dart control's GetEx function. Can you help me in setting the Headers that contains the encrypted username and password as well as the my SessionID(that I already have) so that I could fetch the data without providing username and password.
Thanks
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 25, 2002 10:08 AM

Hi,
The SessionId cookie should be included automatically by the control, if you have the Cookies property set to True.
Perhaps you can get help with the headers you need by using a protocol sniffer to watch what IE sends. TracePlus/Web Detective is easy to use, and you can get a trial here:
http://www.sstinc.com/home_webanal.html
-ken
Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX