Hi all,

I am ATM trying to integrate latest httpclient into Droids. I have some
"old" code that is based on a prior version of the client.

Some method/class name changes I found myself but some I am not sure how
to implement them.

When my old code was:
PostMethod filePost = new PostMethod(solrBase);
filePost.addRequestHeader("Content-type", "text/xml; charset=utf-8");
filePost.addRequestHeader("User-Agent", AGENT);
filePost.setRequestBody(new URL(srcUrl).openStream());

Now I do:
HttpPost filePost = null;
filePost = new HttpPost(solrBase);
filePost.addHeader("Content-type", "text/xml; charset=utf-8");
filePost.addHeader("User-Agent", AGENT);
InputStreamEntity reqEntity = new InputStreamEntity(src, -1);
filePost.setEntity(reqEntity);

But for the following I could not found the corresponding method:
public String getResponseCharSet() {
  return filePost.getResponseCharSet();
}

public String getResponseBodyAsString() {
  return filePost.getResponseBodyAsString();
}

Can you point me to the new methods?

TIA

salu2
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to