Hi
Is there way to send POST web request with a file as a form-data (not as binary/octet-stream data) by using plugins.http?
I use following code:
var httpClient = plugins.http.createNewHttpClient();
var request = httpClient.createPostRequest(sUrl);
var r = request.addFile('test', '1.pdf', 'D:\\1.pdf');
var response = request.executeRequest();
Fiddler says that Content-Type: binary/octet-stream
I need to send file as multipart/form-data (Content-type: multipart/form-data;)
Or there is only one way to use Java or it is possible to do it with plugins.http?
Related question: viewtopic.php?f=34&t=21834
We are using currently Servoy 8.4.
Thanks, Anton