Error with https

Giganews Newsgroups
Subject: Error with https
Posted by:  Alexandre (alexandrepires20…@yahoo.com.br)
Date: Thu, 27 Mar 2008

Hi Remy,

Remy i have a program in a windows 2003 server and when i use IdHTTP.Get
with https the program raise a exception. In Windows XP the program works
fine, but in windows 2003 dont work.

I made a bug report with madexcept

Some idea ?

Thx

Bug Report:

date/time        : 2008-03-27, 09:12:04, 796ms
computer name    : DANIEL-4B5A9E51
wts client name  : PHANTOMAS
user name        : Administrator <admin>
operating system  : Windows 2003 Service Pack 2 build 3790
system language  : Portuguese
system up time    : 3 days 3 hours
program up time  : 13 seconds
processor        : Intel(R) Pentium(R) 4 CPU 2.40GHz
physical memory  : 1106/1503 MB (free/total)
free disk space  : (C:) 68,58 GB
display mode      : 1024x768, 16 bit
process id        : $6b0
allocated memory  : 3,53 MB
executable        : FTTeste.exe
exec. date/time  : 2008-03-27 09:14
madExcept version : 3.0b
callstack crc    : $afe48934, $becaf226, $becaf226
exception number  : 1
exception class  : EIdHTTPProtocolException
exception message : Unknown.

Main ($2e0):
004d168b +0d7 FTTeste.exe IdHTTP  1850  +13 CheckException
004d1b05 +341 FTTeste.exe IdHTTP  2008 +121 TIdHTTPProtocol.ProcessResponse
004d200d +1c1 FTTeste.exe IdHTTP  2121  +35 TIdCustomHTTP.DoRequest
004d1da1 +06d FTTeste.exe IdHTTP  2078  +3 TIdCustomHTTP.Get
004d1cc9 +065 FTTeste.exe IdHTTP  2064  +3 TIdCustomHTTP.Get
004cf41c +038 FTTeste.exe IdHTTP    892  +1 TIdCustomHTTP.Get
004deff6 +1f2 FTTeste.exe Unit1      90  +28 TForm1.Button1Click
00484810 +064 FTTeste.exe Controls          TControl.Click
0047cda0 +01c FTTeste.exe StdCtrls          TButton.Click
0047ce94 +00c FTTeste.exe StdCtrls          TButton.CNCommand
00484678 +188 FTTeste.exe Controls          TControl.WndProc
004875c3 +157 FTTeste.exe Controls          TWinControl.WndProc
0047cc64 +06c FTTeste.exe StdCtrls          TButtonControl.WndProc
00484448 +024 FTTeste.exe Controls          TControl.Perform
004876fb +023 FTTeste.exe Controls          DoControlMsg
00487d53 +00b FTTeste.exe Controls          TWinControl.WMCommand
0049e470 +02c FTTeste.exe Forms              TCustomForm.WMCommand
00484678 +188 FTTeste.exe Controls          TControl.WndProc
004875c3 +157 FTTeste.exe Controls          TWinControl.WndProc
0049c4c9 +421 FTTeste.exe Forms              TCustomForm.WndProc
00465f30 +014 FTTeste.exe Classes            StdWndProc
00487240 +02c FTTeste.exe Controls          TWinControl.MainWndProc
00465f30 +014 FTTeste.exe Classes            StdWndProc
7739c332 +044 user32.dll                    SendMessageW
773b045e +016 user32.dll                    CallWindowProcA
004876a7 +0d7 FTTeste.exe Controls          TWinControl.DefaultHandler
00484c18 +010 FTTeste.exe Controls          TControl.WMLButtonUp
00484678 +188 FTTeste.exe Controls          TControl.WndProc
004875c3 +157 FTTeste.exe Controls          TWinControl.WndProc
0047cc64 +06c FTTeste.exe StdCtrls          TButtonControl.WndProc
00487240 +02c FTTeste.exe Controls          TWinControl.MainWndProc
00465f30 +014 FTTeste.exe Classes            StdWndProc
773a16e0 +00a user32.dll                    DispatchMessageA
004a27df +083 FTTeste.exe Forms              TApplication.ProcessMessage
004a27fe +00a FTTeste.exe Forms              TApplication.HandleMessage
004a2a1e +096 FTTeste.exe Forms              TApplication.Run
004e06cb +03b FTTeste.exe FTTeste    17  +3 initialization

thread $f5c:
7c8285ec +0 ntdll.dll  KiFastSystemCallRet
7c827cf9 +a ntdll.dll  NtWaitForMultipleObjects

modules:
00400000 FTTeste.exe                C:\FTTeste
02180000 ssleay32.dll 0.9.8.7        C:\WINDOWS\system32
10000000 libeay32.dll 0.9.8.7        C:\WINDOWS\system32
4b3c0000 MSCTF.dll    5.2.3790.3959  C:\WINDOWS\system32
4dc30000 msctfime.ime 5.2.3790.3959  C:\WINDOWS\system32
5f270000 hnetcfg.dll  5.2.3790.3959  C:\WINDOWS\system32
68000000 rsaenh.dll  5.2.3790.3959  C:\WINDOWS\system32
71ae0000 wshtcpip.dll 5.2.3790.3959  C:\WINDOWS\System32
71b20000 mswsock.dll  5.2.3790.3959  C:\WINDOWS\system32
71b70000 uxtheme.dll  6.0.3790.3959  C:\WINDOWS\system32
71bb0000 wsock32.dll  5.2.3790.0    C:\WINDOWS\system32
71bf0000 WS2HELP.dll  5.2.3790.3959  C:\WINDOWS\system32
71c00000 WS2_32.dll  5.2.3790.3959  C:\WINDOWS\system32
71c20000 tsappcmp.dll 5.2.3790.3959  C:\WINDOWS\system32
71c40000 NETAPI32.dll 5.2.3790.3959  C:\WINDOWS\system32
75e60000 apphelp.dll  5.2.3790.3959  C:\WINDOWS\system32
76290000 IMM32.DLL    5.2.3790.3959  C:\WINDOWS\system32
762b0000 comdlg32.dll 6.0.3790.3959  C:\WINDOWS\system32
76b70000 PSAPI.DLL    5.2.3790.3959  C:\WINDOWS\system32
76ed0000 DNSAPI.dll  5.2.3790.3959  C:\WINDOWS\system32
76f00000 wtsapi32.dll 5.2.3790.3959  C:\WINDOWS\system32
76f10000 WLDAP32.dll  5.2.3790.3959  C:\WINDOWS\system32
76f50000 Secur32.dll  5.2.3790.3959  C:\WINDOWS\system32
76f70000 winrnr.dll  5.2.3790.3959  C:\WINDOWS\System32
76f80000 rasadhlp.dll 5.2.3790.3959  C:\WINDOWS\system32
771f0000 WINSTA.dll  5.2.3790.3959  C:\WINDOWS\system32
77380000 user32.dll  5.2.3790.4033  C:\WINDOWS\system32
77420000 comctl32.dll 6.0.3790.3959
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.3959_x-ww_D8713E55
77530000 comctl32.dll 5.82.3790.3959
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.82.3790.3959_x-ww_78FCF8D0
77670000 ole32.dll    5.2.3790.3959  C:\WINDOWS\system32
77b90000 version.dll  5.2.3790.3959  C:\WINDOWS\system32
77ba0000 msvcrt.dll  7.0.3790.3959  C:\WINDOWS\system32
77c00000 GDI32.dll    5.2.3790.4033  C:\WINDOWS\system32
77c50000 RPCRT4.dll  5.2.3790.4115  C:\WINDOWS\system32
77d00000 oleaut32.dll 5.2.3790.4202  C:\WINDOWS\system32
77da0000 SHLWAPI.dll  6.0.3790.3959  C:\WINDOWS\system32
77e40000 kernel32.dll 5.2.3790.4062  C:\WINDOWS\system32
77f50000 ADVAPI32.dll 5.2.3790.3959  C:\WINDOWS\system32
7c340000 MSVCR71.dll  7.10.3052.4    C:\WINDOWS\system32
7c800000 ntdll.dll    5.2.3790.3959  C:\WINDOWS\system32
7c8d0000 shell32.dll  6.0.3790.4184  C:\WINDOWS\system32

processes:
000 Idle                      0
004 System                    0 normal
124 smss.exe                  0 normal C:\WINDOWS\system32
154 csrss.exe                  0 normal C:\WINDOWS\system32
16c winlogon.exe              0 high  C:\WINDOWS\system32
19c services.exe              0 normal C:\WINDOWS\system32
1a8 lsass.exe                  0 normal C:\WINDOWS\system32
25c svchost.exe                0 normal C:\WINDOWS\system32
294 type32.dll                0 normal C:\WINDOWS\system32
2cc svchost.exe                0 normal C:\WINDOWS\system32
30c svchost.exe                0 normal C:\WINDOWS\system32
338 svchost.exe                0 normal C:\WINDOWS\system32
348 svchost.exe                0 normal C:\WINDOWS\System32
410 msdtc.exe                  0 normal C:\WINDOWS\system32
4a4 svchost.exe                0 normal C:\WINDOWS\System32
4bc InjectWinSockServiceV3.exe 0 normal C:\Program
Files\IEInspector\HTTPAnalyzerFullV3
4f0 svchost.exe                0 normal C:\WINDOWS\system32
67c lserver.exe                0 normal C:\WINDOWS\system32
6f4 svchost.exe                0 normal C:\WINDOWS\System32
864 csrss.exe                  1 normal C:\WINDOWS\system32
880 winlogon.exe              1 high  C:\WINDOWS\system32
924 rdpclip.exe                1 normal C:\WINDOWS\system32
990 ctfmon.exe                1 normal C:\WINDOWS\system32
998 Explorer.EXE              1 normal C:\WINDOWS
a0c wmiprvse.exe              0 normal C:\WINDOWS\system32\wbem
a2c fbguard.exe                1 normal C:\Program
Files\Firebird\Firebird_1_5\bin
a48 fbserver.exe              1 normal C:\Program
Files\Firebird\Firebird_1_5\bin
a90 ApacheMonitor.exe          1 normal C:\Program Files\Apache Software
Foundation\Apache2.2\bin
a98 wupdate.exe                1 normal C:\Documents and Settings\All
Users\Start Menu\Programs\Startup
ab8 schtasks.exe              1 normal C:\WINDOWS\system32
b08 svchost.exe                0 normal C:\WINDOWS\System32
f08 logon.scr                  0 idle  C:\WINDOWS\system32
9e4 spoolsv.exe                0 normal C:\WINDOWS\system32
250 httpd.exe                  0 normal C:\Program Files\Apache Software
Foundation\Apache2.2\bin
084 httpd.exe                  0 normal C:\Program Files\Apache Software
Foundation\Apache2.2\bin
b34 firefox.exe                1 normal C:\Program Files\Mozilla Firefox
6b0 FTTeste.exe                1 normal C:\FTTeste

hardware:
+ Computer
  - ACPI Uniprocessor PC
+ Disk drives
  - ST380011A
  - ST380215A
+ Display adapters
  - SiS 650_651_M650_740 (Microsoft Corporation) (driver 6.13.10.3080)
+ Floppy disk controllers
  - Standard floppy disk controller
+ Floppy disk drives
  - Floppy disk drive
+ IDE ATA/ATAPI controllers
  - Primary IDE Channel
  - Secondary IDE Channel
  - SiS PCI IDE Controller
+ Monitors
  - Default Monitor
+ Network adapters
  - SiS 900-Based PCI Fast Ethernet Adapter
+ Ports (COM & LPT)
  - Communications Port (COM1)
  - Communications Port (COM2)
  - ECP Printer Port (LPT1)
+ Processors
  - Intel(R) Pentium(R) 4 CPU 2.40GHz
+ Sound, video and game controllers
  - Audio Codecs
  - Legacy Audio Drivers
  - Legacy Video Capture Devices
  - Media Control Devices
  - MPU-401 Compatible MIDI Device
  - Standard Game Port
  - Video Codecs
+ System devices
  - ACPI Fan
  - ACPI Fixed Feature Button
  - ACPI Power Button
  - ACPI Sleep Button
  - ACPI Thermal Zone
  - Direct memory access controller
  - ISAPNP Read Data Port
  - Logical Disk Manager
  - Microcode Update Device
  - Microsoft ACPI-Compliant System
  - Microsoft System Management BIOS Driver
  - Motherboard resources
  - Motherboard resources
  - Numeric data processor
  - PCI bus
  - PCI standard host CPU bridge
  - Plug and Play Software Device Enumerator
  - Printer Port Logical Interface
  - Programmable interrupt controller
  - SIS PCI to ISA bridge
  - SIS Processor to AGP Controller
  - System board
  - System CMOS/real time clock
  - System speaker
  - System timer
  - Terminal Server Device Redirector
  - Terminal Server Keyboard Driver
  - Terminal Server Mouse Driver
  - Volume Manager
+ Universal Serial Bus controllers
  - SiS 7001 PCI to USB Open Host Controller
  - SiS 7001 PCI to USB Open Host Controller
  - Standard Enhanced PCI to USB Host Controller
  - USB Root Hub
  - USB Root Hub
  - USB Root Hub

cpu registers:
eax = 00badba4
ebx = ffffffff
ecx = 00000002
edx = 004d1690
esi = ffffffff
edi = 0012f438
eip = 004d1690
esp = 0012f378
ebp = 0012f3d8

stack dump:
0012f378  90 16 4d 00 de fa ed 0e - 01 00 00 00 07 00 00 00
...M.............
0012f388  8c f3 12 00 90 16 4d 00 - a4 db ba 00 ff ff ff ff
.......M.........
0012f398  ff ff ff ff 38 f4 12 00 - d8 f3 12 00 a8 f3 12 00
.....8...........
0012f3a8  b4 f3 12 00 20 3f 40 00 - d8 f3 12 00 e8 f3 12 00
......?@.........
0012f3b8  20 3f 40 00 d8 f3 12 00 - ff ff ff ff ff ff ff ff
..?@.............
0012f3c8  00 00 00 00 54 f0 b9 00 - 00 00 00 00 c0 f3 12 00
.....T...........
0012f3d8  18 f4 12 00 0a 1b 4d 00 - ff ff ff ff 18 f4 12 00
.......M.........
0012f3e8  20 f4 12 00 20 3f 40 00 - 18 f4 12 00 58 eb b9 00
......?@.....X...
0012f3f8  54 f0 b9 00 ec 11 4d 00 - 00 00 00 00 00 00 00 00
T.....M.........
0012f408  00 00 00 00 ff ff ff ff - f4 f3 12 00 08 dd b9 00
.................
0012f418  5c f4 12 00 12 20 4d 00 - 2c f4 12 00 20 3f 40 00
\.....M.,....?@.
0012f428  5c f4 12 00 74 f4 12 00 - 20 3f 40 00 5c f4 12 00
\...t....?@.\...
0012f438  70 f7 12 00 54 f0 b9 00 - 24 ee 4c 00 00 00 00 00
p...T...$.L.....
0012f448  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
.................
0012f458  08 b8 b9 00 90 f4 12 00 - a7 1d 4d 00 ff ff ff ff
...........M.....
0012f468  38 f4 12 00 54 f0 b9 00 - 00 00 00 00 a0 f4 12 00
8...T...........
0012f478  20 3f 40 00 90 f4 12 00 - 70 f7 12 00 b8 f4 12 00
..?@.....p.......
0012f488  08 b8 b9 00 00 00 00 00 - c8 f4 12 00 ce 1c 4d 00
...............M.
0012f498  ff ff ff ff 80 f4 12 00 - ac f4 12 00 20 3f 40 00
..............?@.
0012f4a8  c8 f4 12 00 d8 f4 12 00 - 20 3f 40 00 c8 f4 12 00
..........?@.....

disassembling:
[...]
004d167c        push    eax
004d167d        mov    ecx, ebx
004d167f        mov    dl, 1
004d1681        mov    eax, [$4cf200]
004d1686        call    -$2343 ($4cf348)      ;
IdHTTP.EIdHTTPProtocolException.CreateError
004d168b      > call    -$cd6a4 ($403fec)      ; System.@RaiseExcept
004d1690        xor    eax, eax
004d1692        pop    edx
004d1693        pop    ecx
004d1694        pop    ecx
004d1695        mov    fs:[eax], edx
[...]

Replies