.... provided the server side supports the HEAD method, something which is
not always the case.
I you plan to performs thousands of requests in parallell, you certainly
want it to be async.
You also might want to consider
https://github.com/AsyncHttpClient/async-http-client, which lets you stop
reading the response after receiving the status code.

Stefan

2015-09-25 11:16 GMT+02:00 Karl Wettin <karl.wet...@kodapan.se>:

> Perfect, thanks!
>
> > On 25 Sep 2015, at 04:10, Ryan Fulghum <ryan.fulgh...@gmail.com> wrote:
> >
> > HTTP Head requests achieve what you are looking for;
> >
> > On Sep 24, 2015 21:12, "Karl Wettin" <karl.wet...@kodapan.se> wrote:
> >
> >> Hi all,
> >>
> >> I want to send a request that download headers but no actual content. Is
> >> that possible? What I'm trying to solve is to check if any URLs in a
> list
> >> of kazillion are broken in some way, more or less if I get a HTTP 200
> and
> >> then hang up without wasting any bandwidth.
> >>
> >> Not sure wether or not this is in fact what HC already do if I don't
> >> access entity.getContent()?
> >>
> >> Thanks,
> >>
> >>                karl
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
> >> For additional commands, e-mail: httpclient-users-h...@hc.apache.org
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
> For additional commands, e-mail: httpclient-users-h...@hc.apache.org
>
>


-- 
BEKK Open
http://open.bekk.no

TesTcl - a unit test framework for iRules
http://testcl.com

Reply via email to