fix POST request building issue (InputStream was not available)