I am trying to post the following JSON object alongside with image data using curl:
{
"score_id": "153A6D67",
"inputs": [{
"type": "hits",
"value": "4"
},{
"type": "miss",
"value": "3"
}]
}
The best I have come so far is this:
curl --request POST "https://my-server/post-url"
--header 'Accept: application/json'
--form "score_id=153A6D67"
--form 'inputs[]={"type":"hits","value":"4"}; type=application/json'
--form 'inputs[]={"type":"miss","value":"3"}; type=application/json'
--form "uploaded_image=@$IMAGE" # <<< IMPORTANT! this is an image!
The server implementation I am trying to hit, does not recognize the objects sent with the attribute inputs
.
Any Idea what I am doing wrong?
Thank you very much for any direction.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…