troubleshooting Question

IdHttp, Get Source from a https:// site!

Avatar of SaTaX
SaTaX asked on
DelphiPascal
7 Comments1 Solution4486 ViewsLast Modified:
Hi,
I am searching very long for a solution to get a source from a HTTPS:// page!

This is how I did the work:
I added an idhttp component, then an IdSSLIOHandlerSocketOpenSSL component and I insterted IdSSLIOHandlerSocketOpenSSL in Idhttp as IOHandler.
Then I added "IdSSLOpenSSLHeaders.Load;" in form.create.
And finally I added the 3 DLL's in the application folder. (libssl32.dll,ssleay32.dll,libeay32.dll).
If I run the program, it gives some weird errors like Address 0000X0000.
The source code:
procedure TForm2.FormCreate(Sender: TObject);
begin
IdSSLOpenSSLHeaders.Load;
end;
 
procedure TForm2.SpeedButton1Click(Sender: TObject);
begin
try
memo1.Text :=  idhttp1.Get('https://weblogin.runescape.com/login.ws');
finally
idhttp1.Free;
idssliohandlersocketopenssl1.Free;
end;
end;
ASKER CERTIFIED SOLUTION
SaTaX

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros