hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christine Karman <christ...@christine.nl>
Subject Re: MultipartEntity and HttpMultipart
Date Mon, 16 Nov 2009 13:52:07 GMT
Oleg Kalnichevski wrote:
> On Thu, 2009-11-12 at 15:47 +1100, Scott Yeadon wrote:
>   
>> "HttpMultipart"-based requests. It appears the simplest means to POST a 
>> request with multipart/mixed contentType is to create a new entity class 
>> implementing HttpEntity (e.g. MultipartMixedEntity) - is that correct or 
>> are there other means of doing this with the 4.0 API?
>>
>>     
>
> You will be better off just overriding the #generateContentTypre method
> of the MultipartEntity class.
>   
I agree with Oleg, I have done as he says, I have extended the 
MultipartMime class and overridden one or two methods. I remember there 
were some issues with setting and getting the content type, I don't know 
if that has been fixed or not.

Christine
>
>   
>> Also, what is the relation between these sets of entity classes - the 
>> HttpEntity implentations appear in the "entity" package and the others 
>> appear in the "mime" package? Is there some sort of de-lineation or 
>> usage rules for these classes I should be aware of?
>>
>>     
>
> HttpMime is somewhat special because it is not fully API stable due to
> its dependency on Mime4j, which is still considered API unstable.  
>
> Hope this answers your question.
>
> Oleg
>
>   
>> Thanks.
>>
>> Scott.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
>> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>>
>>     
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>   


-- 
dagdag is just a two-character rotation of byebye.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message