Possible to get https request in a compiled macro?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
rullbandspelare
Pro Scripter
Posts: 149
Joined: Tue Mar 23, 2004 9:11 pm

Possible to get https request in a compiled macro?

Post by rullbandspelare » Thu Jan 06, 2011 5:50 am

Hi!

How can i redistribute a compiled .exe that is accessing a https URL?

For example.
HTTPRequest>https://www.abc.se/,,GET,,XML_Out

I do not want to force the user to install OpenSSL. I have tried to just put the OpenSSL files in the same folder as the executable, but not working.

Help!

Thanks

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Jan 06, 2011 9:14 am

I'm afraid the user will have to install OpenSSL.

Why not package up your EXE and the OpenSSL libraries into an installer file using for e.g. Inno Setup or similar.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

Post by adroege » Fri Jan 07, 2011 8:37 pm

Code: Select all

I use this solution:

Download the "binaries" from this page as a zip file
http://gnuwin32.sourceforge.net/packages/openssl.htm

Unzip the contents

find the files libeay32.dll (version 0.9.8.8) and libssl32.dll
(version 0.9.8.8) in the Bin folder

Make a copy of libssl32.dll and call it "ssleay32.dll"

Now just deliver all 3 DLL files in the same folder as the
compiled Macro Scheduler EXE
(libeay32.dll     libssl32.dll     ssleay32.dll)

Using this method, I didn't have to do any special SSL "install",
run regsvr32.exe, or do any registry hacks.  It just works.


rullbandspelare
Pro Scripter
Posts: 149
Joined: Tue Mar 23, 2004 9:11 pm

Post by rullbandspelare » Tue Jan 11, 2011 2:48 am

Sounds nice.
I did as You described, but it is not working.

Just putting the DLL in the same folder as executable is not working.
And I get "DllRegisterServer entry point was not found " and the dll are not registererd when trying to register them with Regsvr32.exe.

Thanksfor any help.

rullbandspelare
Pro Scripter
Posts: 149
Joined: Tue Mar 23, 2004 9:11 pm

Post by rullbandspelare » Tue Jan 11, 2011 3:59 am

I had not seen that Let>HTTP_SSL=1 was required.

It appears to work with just putting
ssleay32.dll and libeay32.dll in the same folder.

Thanks!

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts