I want to run this my script using task scheduler on Windows Server. This script contains PHP, HTML, and Javascript. This script is using for Image Recognition and should running daily.
If I'm using browser and type this url bellow
http://localhost/html/xpix/index.php?APICall=1&APICGI=1&APICode=0x00000008&APIFile=2017-11-02_08-00&DateToCompare=2017-11-02&DateToProcess=2017-11-02&ObjRecogMode=1&CheatMode=1
its working fine.
But while on CLI (Windows Command Prompt) and using curl, I've tried this bellow
curl "http://localhost/html/xpix/index.php?APICall=1&APICGI=1&APICode=0x00000008&APIFile=2017-11-02_08-00&DateToCompare=2017-11-02&DateToProcess=2017-11-02&ObjRecogMode=1&CheatMode=1"
It won't work even tried using -s parameter
. Its just print the HTML Code.
I've tried to use Google Chrome headless but still won't work
chrome.exe --headless --disable-gpu --remote-debuging-port=9222 "http://localhost/html/xpix/index.php?APICall=1&APICGI=1&APICode=0x00000004&APIFile=2017-11-02_08-00&DateToCompare=2017-11-01&DateToProcess=2017-11-01&ObjRecogMode=1&CheatMode=1"
This script also contains an Ajax and do call Java Web Service and save data to MySQL Database.
Is there any miss configuration?