I am getting an error (the remote server returned an error 500. Internet server error) when sending JSON data to a remote server: here is the code
if