>> 1. HTTP examples I used don't work for me.
>> I was trying many URLs, but none was working.
>>
>> This piece of code shows me all headers of document.
>> <code>
>>         HTTP.HTTPGet(txtURL.Text);
>>         for i := 0 to (HTTP.Headers.Count-1) do 
>> memoLog.Lines.Add(HTTP.Headers.Strings[i]);
>> </code>
>>
>> ...but this clears my memo as there is nothing in HTTP.Document
>> <code>      
>>         memoLog.Lines.LoadFromStream(HTTP.Document);
>>
>>
>> </code>See for implementation of HttpGetText function for sample.
>>
>>     
>> //--------- 2. What kind of proxy authentications does Synapse support? I
>> saw some example with NTLM but there is couple of others I would like to
>> include in my project. I want to use it with SSL.
>>     
>
> For SSL authorization you must set your private key to your seletced SSl 
> plugin. Implementation is depended on selected SSL plugin, because each 
> plugin have different capabilities. However this authorization by SSL key 
> is authorization on TCP level.
>
> For authorization on HTTP level Synapse supporting 'basic' authorization 
> only. (Or you can try some NTLM authoraztion patches published here 
> before a month)
>
>   
Thanx for the answer.
I already succeeded in running Ben's THTTPSend Demo (HTTPS) under Delphi.
But now I have a problem to convert it to BDS 2006.
I created .hpp files , but there is some problem to convert one of 
IEncryption Interface.
BDS shows me an error:
"Class type IEncryption cannot be marked as __declspec(delphireturn)"

The source in NTLMEncryption.pas file looks like:

IEncryption = Interface
    ['{3B5BA6D3-CC96-11D6-A883-0002B30B8C0F}']
    procedure MDInit(context: PMD4Ctx);
    procedure MDUpdate(context: PMD4Ctx; input: Pointer; inputLen: 
LongWord);
    function MDFinal(context: PMD4Ctx): String;
    function StrToBase64( const Buffer: String ): String;
    function Base64ToStr( const Buffer: String ): String;
    function DesEcbEncrypt( AKey: String; AData: Array of byte ): String;
  end;

I have no clue why the second line stands here for - looks like some 
encryption data.
And it looks like dcc32 doesn't know what to do with that.
NTLMEncryption.hpp file shows:

__interface IEncryption;
typedef System::DelphiInterface<IEncryption> _di_IEncryption;
__interface IEncryption  : public _di_IUnknown /* 
__guid="{3B5BA6D3-CC96-11D6-A883-0002B30B8C0F}" */ 
{
public:
    virtual void __fastcall MDInit(PMD4Ctx context) = 0;
    virtual void __fastcall MDUpdate(PMD4Ctx context, void * input, int 
inputLen) = 0;
    virtual AnsiString __fastcall MDFinal(PMD4Ctx context) = 0;
    virtual AnsiString __fastcall StrToBase64(const AnsiString Buffer) = 0;
    virtual AnsiString __fastcall Base64ToStr(const AnsiString Buffer) = 0;
    virtual AnsiString __fastcall DesEcbEncrypt(AnsiString AKey, const 
Byte * AData, const int AData_Size) = 0;
};

Regards
kappa

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to