Hi Roland,

Appearantly it adds the functionality I need. I had not realized parameters (which seem pretty basic, or "core" to me) would not be in the HttpCore package.
What if I wanted to add the parameter manually? Do I simply add a StringEntity("name=value")? This did not seem to work with the sample code.
Or do I have to do all the work (e.g. create boundary, set content type etc.)? In that case I am probably better of building a "simple" URLConnection.

Thanks,
Matthijs

Roland Weber wrote:
Matthijs Bierman wrote:
  
Hi there,

I have a very simple question, but can't seem to figure it out.
How do I add a POST parameter using HttpCore?
    

You don't. Core is hardcore. It doesn't provide all the fancy
stuff like parameter encoding, cookie handling, authentication,
or connection management that client comes with.

  
I would prefer using HttpCore over HttpClient as it is a lot smaller and
has to be included in an applet. Therefore the 140kB makes quite a
difference to me.
    

Those 140kB are not redundant. They add functionality ;-)

cheers,
  Roland


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



  

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

Reply via email to