http post request- Windows vs UNIX CRLF issue

I am sending http post request as String data to remote server(which is on UNIX).
Remote server receives my request but as an one line String.
But the remote webservice expects CRLF in some lines, which I am sending while forming input String to http client.

The body of http request is like -

Content-Disposition: form-data;name=“USER”
content-type: text/plain

Content-Disposition: form-data;name=“PASSWORD”
content-type: text/plain



But in server side they found only LF(0A) and not CRLF(0D0A)

I tried forming String using java service(lineSeparator). “\n”, “\r” - but failing
500 Internal server Error.

if someone can give different thoughts, it will be great help.