I am trying to make a curl POST from java through java s Runtime. When I run a shell script with the command "curl -vF etc" in it, the code runs as expected, but if I try pulling the command into java as a properly escaped string it gives the following exception/error "Protocol "http not supported or disabled in libcurlcurl""
String cmd = "./go.sh";
Process process = Runtime.getRuntime().exec(cmd);
//etc...
vs
String cmd = "curl -vF etc";//found in go.sh
Process process = Runtime.getRuntime().exec(cmd);
//etc...
输出
"Curl Executed Correctly"
//proprietary
vs
* Protocol "http not supported or disabled in libcurlcurl: (1) Protocol "http not supported or disabled in libcurl