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

I get a first error which is Client got end of stream error follow by many null pointer exception.
I try to debug and I think it is due to the fonction write that i use with my client.connect_processing