[Rest API] Client and POST request with Processing .net libraries

Not sure if it has any bearing on your code, but do you need to include the asterisk at the end of your import.processing.net statement at the top?

import.processing.net.*;