put.addHeader("Title", "Title " + receiptName + "");
put.addHeader("Slug", "Slug " + receiptName + "");
put.setEntity(new FileEntity(input, "image/jpg"));
// Get HTTP client
HttpClient httpclient = new HttpClientFactory().createHttpClient();
try {
// Execute request
HttpResponse response = httpclient.execute(put);
int result = response.getStatusLine().getStatusCode();
// Pseudo Code (see APP (http://tools.ietf.org/html/rfc5023#section-9.6)