HTTPRequest not working in Compiled version
Moderators: Dorian (MJT support), JRL
HTTPRequest not working in Compiled version
I have a short script that does a HTTPRequest Post. It works great when I run it from MS, but when I compile the code, everything but the HTTPRequest works. I am using the same computer for both runs.
Any ideas on what stupid thing I am overlooking this time?
Andrew T
Any ideas on what stupid thing I am overlooking this time?
Andrew T
Re: HTTPRequest not working in Compiled version
Unfortunately not. I tried it and no joy.
The response I get from the the HTTPRequest is:
Error connecting with SSL.
error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Any other ideas?
Andrew T
The response I get from the the HTTPRequest is:
Error connecting with SSL.
error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Any other ideas?
Andrew T
Re: HTTPRequest not working in Compiled version
Privileges?
Especially if it's a local server.
Especially if it's a local server.
Re: HTTPRequest not working in Compiled version
It is a NotifyMyDevice.com API service.
It's a cool little website/app that I found out about digging around in the MS forum. Unfortunately there doesn't seem to be any Support tab for help.
Still weird that I am running both instances on the same computer with different results. I have other compiled apps that do HTTPRequest API calls to other websites and they work great.
Anybody else out there use NotifyMyDevice.com for anything?
Andrew T.
It's a cool little website/app that I found out about digging around in the MS forum. Unfortunately there doesn't seem to be any Support tab for help.
Still weird that I am running both instances on the same computer with different results. I have other compiled apps that do HTTPRequest API calls to other websites and they work great.
Anybody else out there use NotifyMyDevice.com for anything?
Andrew T.
Last edited by AndrewT on Thu Jun 25, 2020 3:29 pm, edited 1 time in total.
Re: HTTPRequest not working in Compiled version
But are the others pushing data?
Makes me wonder if its your anti-malware stopping executables from phoning home.
Makes me wonder if its your anti-malware stopping executables from phoning home.
Re: HTTPRequest not working in Compiled version
Upon your suggestion, I turned off my anti-malware and tried again. No joy.
Re: HTTPRequest not working in Compiled version
Hmmmm.
Another thing to try. Close Macro Scheduler by going to "File" then "Exit" in the main menu. MSched.exe should not be seen running in task manager. Open the folder containing the uncompiled script using Windows File Explorer. Double click the script and see if it runs.
If it fails then I still think you have some permissions issue.
Another thought, have you tried right clicking on the executable and selecting "Run As Administrator"?
Are you on a work network or is this a personal computer?
Another thing to try. Close Macro Scheduler by going to "File" then "Exit" in the main menu. MSched.exe should not be seen running in task manager. Open the folder containing the uncompiled script using Windows File Explorer. Double click the script and see if it runs.
If it fails then I still think you have some permissions issue.
Another thought, have you tried right clicking on the executable and selecting "Run As Administrator"?
Are you on a work network or is this a personal computer?
Re: HTTPRequest not working in Compiled version
Found the problem, but don't really understand it.
Changed the url from https to http and it works in both versions now.
So maybe it has something to do with the first suggestion you gave me with the dlls and when I tried it, I didn't do something right. Not sure. But it seems to work now.
Thanks for the help.
Andrew T.
Changed the url from https to http and it works in both versions now.
So maybe it has something to do with the first suggestion you gave me with the dlls and when I tried it, I didn't do something right. Not sure. But it seems to work now.
Thanks for the help.
Andrew T.
Re: HTTPRequest not working in Compiled version
Good job!
I had confidence you'd figure it out.
I had confidence you'd figure it out.
Re: HTTPRequest not working in Compiled version
You know what they say about a blind squirrel.
Andrew T.
Andrew T.
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: HTTPRequest not working in Compiled version
Since it works with http but not https that sounds like you didn't include the SSL dlls with the exe. You need libeay32.dll and ssleay32.dll which you'll find in the Macro Scheduler program folder. Make sure they are at the same level as the .exe file.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Re: HTTPRequest not working in Compiled version
Marcus, If the "Copy Runtime DLLs" box is checked during compiling of the exe, is that enough?
Do the files also need to be in the same folder as the exe at runtime?
I thought I had done both earlier, but I didn't get the DLLs from the MS Folder, I had gotten them through the instructions in the link that JRL had posted.
Andrew T.
Do the files also need to be in the same folder as the exe at runtime?
I thought I had done both earlier, but I didn't get the DLLs from the MS Folder, I had gotten them through the instructions in the link that JRL had posted.
Andrew T.
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: HTTPRequest not working in Compiled version
Checking that box should do it yes, but if for some reason it hasn't, copy them over from the Macro Scheduler program folder.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Re: HTTPRequest not working in Compiled version
Yes, the files need to be in the same folder. I solved the issue by doing that.AndrewT wrote: ↑Tue Jun 30, 2020 4:20 pmMarcus, If the "Copy Runtime DLLs" box is checked during compiling of the exe, is that enough?
Do the files also need to be in the same folder as the exe at runtime?
I thought I had done both earlier, but I didn't get the DLLs from the MS Folder, I had gotten them through the instructions in the link that JRL had posted.
Andrew T.