Hey, Beyond this, if you wish to use HC4, have a look at: http://hc.apache.org/httpcomponents-client/index.html
Download at: http://hc.apache.org/downloads.cgi You need both http core and client. Then inside the client there is an examples directory. Use one of the basic examples as your basic structure. Pick on with connection management, unless you only fetch a max of one file per site. If you fetch more than one file per site, then connection management is a good idea for performance. Quintin On Fri, Aug 1, 2008 at 11:09 PM, Quintin Beukes <[EMAIL PROTECTED]> wrote: > Hey, > > Why not use httpclient 4? For new code it's probably the best option. > It's API is much stronger, and it's connection management will fit in > well with your requirements. > > Quintin > > On Fri, Aug 1, 2008 at 5:52 PM, Suladna <[EMAIL PROTECTED]> wrote: >> Hi >> >> I am making a Java-program that should read the html-code from several >> different websites. I am currently using this tutorial to read from one >> website: >> >> http://hc.apache.org/httpclient-3.x/tutorial.html >> >> My question is: do I really have to release and restart the connection after >> every website I read? As there are so many websites it would be good if I >> could instead redefine the HttpMethod instead of creating a new one for each >> site. Is this possible? >> >> Or is it possible to in some way connect to all the websites at the same >> time? >> >> Thanks in advance >> >> >> > > > > -- > Quintin Beukes > -- Quintin Beukes --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
