Postmethod.SetParameter ("Localkburl", getLocalkburl ());
Postmethod.setRequestBody (bin);
Postmethod.AddRequestHeader ("Content-Type",
"Text / XML; Charset = ISO-8859-1");
SetParameter Before SetRequestBody, SETREQUESTBODY should be Clear Parameters.
Although it should be no problem in accordance with the order above, it is actually a conflict in SETPARAMETER and SetHeader, and can only join the parameters:
Postmethod.addRequestHeader ("Localkburl", getLocalkburl ());
Then, when you take the parameter:
String Localkburl = Request.getParameter ("Localkburl");
IF (localkburl == null || Localkburl.length () == 0)
Localkburl = Request.getHeader ("Localkburl");