I was able to locate some solutions, but none have worked for me. I am new to Java and have had no success so far with curl in Java.
curl -X POST -H "Content-Type: application/json" -o output.json --data-binary @input.json http://webaddress.com
The JSON file.
{
"firstNumber": "00",
"secondNumber": "12",
"Type": "MyType",
"data": [0,0,0,0,0]
}
Any help would be really appreciated.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…