Your url has https
and that's why you are getting the error. As you are using -S
it doesn't return you any error(if you get any). Just remove the -S
and you'll see the error.
Now, to fix that error(about https
) you have to add -k
parameter. It will solve your problem. So your overall command will be
curl --data-binary @smallFile.txt https://DPIP:port -S -k