On 11/25/2012 05:17, Ludo Brands wrote:
>
>>  >testhttp http://www.google.invalid/
>> ERROR
>> 500
>>
> Look at
>     HTTP.Sock.GetErrorDescEx;
>     HTTP.Sock.LastErrorDesc;
>     HTTP.Sock.SSL.LastErrorDesc;
>
> GetErrorDescEx  tries to combine socket and ssl errors.

thanks for these, ludo... they get me somewhat closer but i've still no clues 
as 
to the actual problem...

here's my code now...

[quote="testhttp.pas"]
{$MODE DELPHI}

Program testhttp;

uses
   httpsend, classes, ssl_openssl;

var
   HTTP: THTTPSend;
   l: tstringlist;
begin
   HTTP := THTTPSend.Create;
   l := TStringList.create;
   try
     if not HTTP.HTTPMethod('GET', Paramstr(1)) then
       begin
        writeln('ERROR');
         writeln(Http.Resultcode,' "',Http.Resultstring,'"');
         writeln('"',Http.Sock.SSL.LibName,'" "',Http.Sock.SSL.LibVersion,'"');
         writeln('"',Http.Sock.GetErrorDescEx,'"');
         writeln('"',Http.Sock.LastErrorDesc,'"');
         writeln('"',Http.Sock.SSL.LastErrorDesc,'"');
       end
     else
       begin
         writeln(Http.Resultcode, ' ', Http.Resultstring);
         writeln;
         writeln(Http.headers.text);
         writeln;
         l.loadfromstream(Http.Document);
         // writeln(l.text);
      end;
   finally
     HTTP.Free;
     l.free;
   end;
end.
[/quote]

with my EMX DLLs (crypto.dll and ssl.dll), i get the following output...

 >testhttp https://google.com/
ERROR
500 ""
"ssl_openssl" "OpenSSL 0.9.7a Feb 19 2003"
"Network subsystem is unusable"
"Network subsystem is unusable"
""

with my GCC DLLs (also crypto.dll and ssl.dll), i get the following output...

 >testhttp https://google.com/
ERROR
500 ""
"ssl_openssl" ""
""
""
""

*NOTE*: i rename my crypto.dll and ssl.dll files as needed depending on what 
set 
(EMX or GCC) i'm testing with... they /only/ reside in the project directory... 
the GCC DLLs (gcc335.dll, libc06.dll, libc061.dll, libc062.dll libc063.dll) are 
also located in the project directory but i note that there are a couple of 
other sets of them in other directories, as well... the ones above are the same 
as what comes with eCS2, AFAICT... they all have the same dates and times...

the EMX ones seem to be loading so if we can get this working with them, 
that'll 
be great... i prefer to use EMX DLLs anyway because then i don't have so much 
of 
a DLL-hell dance as i seem to have with the GCC stuff...

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to