Re: [twsocket] THttpCli NTLM OverbyteIcsBcb100Package

2011-02-09 Thread Francois PIETTE

ipsHTTPS.UseWinInet  := True;


This line makes me thinking you are not using ICS !
There is no property of type WinInet in ICS.

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be


- Original Message - 
From: D'Arcy McNally darcy.mcna...@nowcasting.ie

To: twsocket@elists.org
Sent: Tuesday, February 08, 2011 10:01 PM
Subject: [twsocket] THttpCli NTLM OverbyteIcsBcb100Package



Folks,

I am updating a Delphi legacy application which uses OverbyteIcs. The 
version is not confirmed but I believe it is v6. The package the legacy 
Delphi application uses is OverbyteIcsBcb100Package.bpl.


This Delphi app successfully uses HTTPCli to download data via HTTP, and 
in particular can download data via the NTLM security protocol. I am 
migrating the Delphi app to C++ and all is well apart from the ability to 
download data using the HTTPCli with NTLM configured.


The old version of the application written in Delphi, which can 
successfully handle NTLM, uses the following 2 lines when NTLM is in use:

ipsHTTPS.UseWinInet  := True;
ipsHTTPS.ProxyServer := '*' + HTTPProxyUser + '*' + HTTPProxyPass;

My latest application written in C++, which cannot handle NTLM, uses the 
following lines when NTLM is in use:

HttpCli-ProxyAuth = httpAuthNtlm;
HttpCli-ProxyUsername = HTTPProxyUser;
HttpCli-ProxyPassword = HTTPProxyPass;

Questions:
1) Should the UseWinInet option be available in the C++ version?
2) Are the '*' used in Delphi version for ProxyServer interpreted by 
Overbyte or are these characters recognised by MS NTLM?


Arno has advised me to update to v7, however I am encountering a number of 
issues migrating. In particular it surrounds the Record Alignment settings 
and the necessity for my application to use Byte alignment instead of Word 
alignment as is the default setting for OverbyteIcsv7. I would prefer to 
utilise the existing package.


Thanks in advance for any support or information

Regards,
D'Arcy


This message (and any associated files) is intended only for the use of 
the individual or entity to which it is addressed and may contain 
information that is confidential, subject to copyright or constitutes a 
trade secret. If you are not the intended recipient you are hereby 
notified that any dissemination, copying or distribution of this message, 
or files associated with this message, is strictly prohibited. If you have 
received this message in error, please notify us immediately by replying 
to the message and deleting it from your computer. Messages sent to and 
from us may be monitored. Internet communications cannot be guaranteed to 
be secure or error-free as information could be intercepted, corrupted, 
lost, destroyed, arrive late or incomplete, or contain viruses. Therefore, 
we do not accept responsibility for any errors or omissions that are 
present in this message, or any attachment, that have arisen as a result 
of e-mail transmission. If verification is required, please request a 
hard-copy version. Any views or opinions presented are solely those of the 
author and do not necessarily represent those of the company.

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be 


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] THttpCli NTLM OverbyteIcsBcb100Package

2011-02-09 Thread D'Arcy McNally
Thanks gentlemen. Your feedback is greatly appreciated.

It looks like my legacy Delphi app was not using ICS, hence the UseWinInet, 
however the current C++ app is using the library OverbyteIcsBcb100Package. Can 
I assume this is version 6 of Overbyte ICS or is it prior?

My follow on question is which params/properties do I need to set when 
configuring my HTTP client (OverbyteIcsBcb100Package) for NTLM. It works fine 
for No  Basic Authentication but when I configure for NTLM one of my clients 
is reporting a failure i.e. cannot download the data. Currently I have the 
following properties configured when download via NTLM:

HttpCli-ProxyAuth = httpAuthNtlm;
HttpCli-ProxyUsername = ProxyUser;
HttpCli-ProxyPassword = ProxyPass;


Thanks in advance.

D'Arcy


-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On 
Behalf Of Angus Robertson - Magenta Systems Ltd
Sent: 09 February 2011 14:34
To: twsocket@elists.org
Subject: Re: [twsocket] THttpCli NTLM OverbyteIcsBcb100Package

  ipsHTTPS.UseWinInet  := True;
 This line makes me thinking you are not using ICS !
 There is no property of type WinInet in ICS.

That was my first thought, except the line:

 HttpCli-ProxyAuth = httpAuthNtlm;

does look remarkably like ICS, so I'd guess the programme is using two
different internet libraries, maybe because it preceded NTLM being added
to ICS in 2004?  

Stripping out all the WinInet code is probably the first step, to ensure
all the correct ICS component properties are being used. 

Angus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


This message (and any associated files) is intended only for the use of the 
individual or entity to which it is addressed and may contain information that 
is confidential, subject to copyright or constitutes a trade secret. If you are 
not the intended recipient you are hereby notified that any dissemination, 
copying or distribution of this message, or files associated with this message, 
is strictly prohibited. If you have received this message in error, please 
notify us immediately by replying to the message and deleting it from your 
computer. Messages sent to and from us may be monitored. Internet 
communications cannot be guaranteed to be secure or error-free as information 
could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or 
contain viruses. Therefore, we do not accept responsibility for any errors or 
omissions that are present in this message, or any attachment, that have arisen 
as a result of e-mail transmission. If verification is required, please request 
a hard-copy version. Any views or opinions presented are solely those of the 
author and do not necessarily represent those of the company.
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] THttpCli NTLM OverbyteIcsBcb100Package

2011-02-09 Thread Arno Garrels
D'Arcy McNally wrote:

 OverbyteIcsBcb100Package. Can I assume this is version 6 of Overbyte
 ICS or is it prior?

This is ICSv6 package for BCB 2006.

 It works fine for No  Basic Authentication but when I configure for
 NTLM one of my clients is reporting a failure i.e. cannot download

You should realy move to v7, v6 is obsolete and not maintained for
years now. Some bugs have been fixed in the NTLM code since then,
as I already wrote in a previous PM. 
   
-- 
Arno Garrels 
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be