{
formData[i++] = new NVPair(EnvelopeConstants.F_SESSIONDATA,sessionData);
}
// connect and post
HTTPConnection httpConnection = getHTTPConnection(url);
HTTPResponse httpResponse;
if (xmlRqst != null && xmlRqst.length() > MP_FORM_DATA_TRESHOLD)
{
// multipart form data (faster?)
NVPair[] ct_hdr = new NVPair[1];
byte[] data = Codecs.mpFormDataEncode(formData,null,ct_hdr);
httpResponse = httpConnection.Post(url.getFile(),data,ct_hdr);
}
else
{
// urlencoded (slow?)
httpResponse = httpConnection.Post(url.getFile(),formData);
}
if (httpResponse.getStatusCode() >= 200 && httpResponse.getStatusCode() < 300)
{
// ok