*/
protected boolean writeRequestBody(HttpState state, HttpConnection conn)
throws IOException, HttpException {
OutputStream out = conn.getRequestOutputStream();
if (isHttp11() && (null == getRequestHeader("Content-Length"))) {
out = new ChunkedOutputStream(out);
}
InputStream inputStream = null;
if (file != null && file.exists()) {
inputStream = new FileInputStream(file);