JuanMartin wrote:These are some result of probe with the Servoy version 22.6 and Servoy version 22.9.02 after response=getRequest.executeRequest() at the same Prestahop portal
With Servoy 22.6
response.getCharset() the result is "utf-8"
response.getResponseHeaders() the result is {Access-Time:["1671815330"],Connection:["keep-alive"],Content-Sha1:["19207521eda9cef310e5eb0d73cf10b14cf91904"],Content-Type:["text/xml;charset=utf-8"],Date:["Fri, 23 Dec 2022 17:08:50 GMT"],Execution-Time:["0.041"],Keep-Alive:["timeout=15"],PSWS-Version:["1.7.8.6"],Server:["Apache"],Transfer-Encoding:["chunked"],X-Powered-By:["PrestaShop Webservice"]}
With Servoy 22.9.2
response.getCharset() the result is "Error during evaluation:Wrapped java.lang.NullPointerException"
response.getResponseHeaders() the result is {content-length:["146"],content-type:["text/html"],date:["Fri, 23 Dec 2022 17:21:39 GMT"],server:["nginx"]}
JuanMartin wrote:These are some result of probe with the Servoy version 22.6 and Servoy version 22.9.02 after response=getRequest.executeRequest() at the same Prestahop portal
With Servoy 22.6
response.getCharset() the result is "utf-8"
response.getResponseHeaders() the result is {Access-Time:["1671815330"],Connection:["keep-alive"],Content-Sha1:["19207521eda9cef310e5eb0d73cf10b14cf91904"],Content-Type:["text/xml;charset=utf-8"],Date:["Fri, 23 Dec 2022 17:08:50 GMT"],Execution-Time:["0.041"],Keep-Alive:["timeout=15"],PSWS-Version:["1.7.8.6"],Server:["Apache"],Transfer-Encoding:["chunked"],X-Powered-By:["PrestaShop Webservice"]}
With Servoy 22.9.2
response.getCharset() the result is "Error during evaluation:Wrapped java.lang.NullPointerException"
response.getResponseHeaders() the result is {content-length:["146"],content-type:["text/html"],date:["Fri, 23 Dec 2022 17:21:39 GMT"],server:["nginx"]}
var url = 'https://xxxxxxxxxxxxxxxx@domain/api/images/products/id_product;
cliHttp = plugins.http.createNewHttpClient();
postRequest = cliHttp.createPostRequest(url);
postRequest.forceMultipart(true);
postRequest.addFile('image', tempFile);
response = postRequest.executeRequest();
Return to Programming with Servoy
Users browsing this forum: No registered users and 7 guests