I set a new instance of LTTool server local. I can visit localhost:8081/?language=en&text=my+text and get XML response correctly. But while I deploy the website of LT. The Index warning me that
“Error: Did not get XML response from service. Please try again in one minute.”
I got this: Error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Then I try to set curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); to ignore SSL verify, but it doesn’t work.
Thanks dnaber, I change to http as you said. The website still warning “Error: Did not get XML response from service. Please try again in one minute.”
But the server in CMD dialog echo : Check done: 272 chars, en-US, http://localhost/, handlers:1, queue:0,7 matches, 1648ms, agent:-, sent. It suppose means the server receive the request. But the website client still warming error Did not get XML response from service.
At last, after send request : http://localhost:8081/?language=en&text=my+text. The server console echo An error has occurred. Stacktrace follows: java.lang.ILLegalArgumentsException: Missing “text” parameter at org.languagetool.server.LanguageToolHttpHandler.handle(LanguageToolHttpHandler.java:202).
I wonder how to fix it.