Http with forceHttp1 true

Hi

In Servoy 2023.03.0, I try to send any image to Prestashop 1.7.6.7 with the Http protocol forceHttp1 true, but dosen’t work

I use this code:

  var config=plugins.http.createNewHttpClientConfig();
    config.forceHttp1=true; 
    cliHttp = plugins.http.createNewHttpClient(config);
    	var postRequest = cliHttp.createPostRequest(url);
	postRequest.addHeader('enctype', 'multipart/form-data');
	postRequest.addHeader('method', 'POST');
	postRequest.addParameter('Content-Disposition', 'form-data;name="image"');
	postRequest.addParameter('Content-Type', content);
	postRequest.addFile('image', tempFile);
	response = postRequest.executeRequest();
	
	result = utils.stringReplace(response.getResponseBody(), "><", ">\n<");

It took a long time to respond and when it does it gives this error:
ERROR com.servoy.j2db.util.Debug - response.getResponseBody API was called while response is null due to request exception: java.net.SocketTimeoutException: 50000 MILLISECONDS

Thanks

It is already working, in case someone needs it, it is as follows:

var url = 'https://prestashop_url /api/images/products/' + product_prestahop_id;
    var config=plugins.http.createNewHttpClientConfig();
    config.forceHttp1=true;
    cliHttp = plugins.http.createNewHttpClient(config);
    var postRequest = cliHttp.createPostRequest(url);
	postRequest.addHeader('enctype', 'multipart/form-data');
	postRequest.addHeader('method', 'POST');
	postRequest.addParameter('Content-Disposition', 'form-data;name="image"');
	postRequest.addParameter('Content-Type', content);
	postRequest.addFile('image', tempFile);
	postRequest.forceMultipart(true);
	postRequest.usePreemptiveAuthentication(true);
	response = postRequest.executeRequest(_sa.presta_clientes ,"a");
	result = utils.stringReplace(response.getResponseBody(), "><", ">\n<");

Hi
I update to Servoy 2023.3.2 and forceHttp1=true dosen´t works again
With the Servoy 2023.3.1 it worked perfectly

I do not see that there has been any modification of this part in the documentation, but the truth is that with Servoy 2023.3.2 it does not work

Thanks