hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "joh sar....." <ehj...@gmail.com>
Subject How to Send a HttpPost with a Mime which is a "mime4j.Message" type ?
Date Wed, 22 Jun 2011 10:49:56 GMT

I'am writing because i don't find how to send a Mime which i construct
with the library mime4j.
I would like send this mime by means of a http post request. For this
i try  to use httpmime.

I know that i can construct mime with httpmime but in my case I must
send a base64 body so body of httpmime doesn't work for that;

My question is : Does someone know (or give me clues) how to send the
mime (with base64 body) in a http Post request ?

For the moment, I have my beautiful Mime (type :mime4j.Message)  which
is correct but i don't find lines of codes which send a mime in

thx by advance


		try {
                               ??? I don't find this line ???
			response = httpClient.execute(httpPost);
			HttpEntity httpEntity = response.getEntity();
			line = EntityUtils.toString(httpEntity);
		} catch (ParseException e) {
		} catch (IOException e) {
		return line;

To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org

View raw message