Tried with following:
ProcessBuilder
Runtime.exec()
but not able to execute?
My curl request
ProcessBuilder pb = new ProcessBuilder( "curl",
"-H Content-type: text/xml;charset=UTF-8",
"-d @acd.xml" ,
"-k "
,"\"https://127.0.0.1:4443/s1/ssdces/dfing/v2\"",
"--tlsdv1");
I got an error
curl: (1) Protocol "https not supported or disabled in libcurl
but I have already specified -k for insecure connection
curl --version
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.21 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
Terminal is working fine but when try to use using java it gives above error
ErrorStream
?