bucketName=checkBucket(bucketName);
boolean hasObj=!StringUtil.isEmpty(objectName);
if(hasObj)objectName=checkObjectName(objectName);
Entity re = HTTPEngine3Impl.getByteArrayEntity(acp.toXMLString().getBytes(CharsetUtil.ISO88591),"text/html");
String dateTimeString = Util.toHTTPTimeString();
String cs = "PUT\n\n"+re.contentType()+"\n"+dateTimeString+"\n/"+bucketName+"/"+(hasObj?objectName:"")+"?acl";
String signature = createSignature(cs, getSecretAccessKeyValidate(), "iso-8859-1");
Header[] headers = new Header[]{
header("Content-Type",re.contentType()),
header("Content-Length",Long.toString(re.contentLength())),
header("Date",dateTimeString),
header("Authorization","AWS "+getAccessKeyIdValidate()+":"+signature),
};
String strUrl="http://"+bucketName+"."+host+"/";