Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 44255 invoked from network); 8 Sep 2010 20:16:41 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Sep 2010 20:16:41 -0000 Received: (qmail 28668 invoked by uid 500); 8 Sep 2010 20:16:40 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 28617 invoked by uid 500); 8 Sep 2010 20:16:40 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 28609 invoked by uid 99); 8 Sep 2010 20:16:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Sep 2010 20:16:40 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of stephen.butler@gmail.com designates 209.85.160.51 as permitted sender) Received: from [209.85.160.51] (HELO mail-pw0-f51.google.com) (209.85.160.51) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Sep 2010 20:16:33 +0000 Received: by pwj1 with SMTP id 1so296152pwj.10 for ; Wed, 08 Sep 2010 13:16:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=Cetf65fr0YglUpYG5w4mCpvvy3aw/ttPoNnNxAVVUbw=; b=ShvWI5PWKm/FbQ0cpjwfbHTRIG/AhXTzyRHKd72PzyPpZv0xAqC0US4QMS8bL0Gq73 MRQeDSXGwe/YYzCb3IQztCnMkhtN0ZxMYaAcZ/yKxBzgeMn1SBCnTZU9a3l3jVnaQPIZ u9Dr8n3cvzELLEvHRVsfrLmJgyHN9OO27pxGE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=E+ioNJrvnIkpSwGl/ymUokhZa4FXxlHkM+MuEbDC0Vih3XqCp8jBF44bgGP6QyC3uY g0nkpIHkkOC57Xqx5NcDlW+EW03fjZ0dQwjnY92NgltdXc2mPAS5/8p2dcjWrXf58Mzp rut8A5HYOfl+c/4QvXJa9MGHbWtDEgjCG3QEY= MIME-Version: 1.0 Received: by 10.142.200.10 with SMTP id x10mr102036wff.168.1283976973367; Wed, 08 Sep 2010 13:16:13 -0700 (PDT) Received: by 10.220.189.193 with HTTP; Wed, 8 Sep 2010 13:16:13 -0700 (PDT) In-Reply-To: References: Date: Wed, 8 Sep 2010 15:16:13 -0500 Message-ID: Subject: Re: Why doesn't httpclient follow redirects on this URL? From: "Stephen J. Butler" To: HttpClient User Discussion Content-Type: text/plain; charset=ISO-8859-1 On Wed, Sep 8, 2010 at 2:38 PM, Jim wrote: > Stephen is there a way to issue a GET without bringing back the actual HTML > content? My main goal is just to get the final URL of what the link is and > bringing back all the content will slow things down quite a bit. Depends on what your application is. If you're always hitting Google first, you could set ClientPNames.HANDLE_REDIRECTS to false, send Google GET, do the redirect yourself, and then the redirect URL HEAD. The risk is that whatever information you hope to get from HEAD isn't correct. We've already seen one case where it fails. I have to say that in all the webapps I've written, I don't think I've once thought about HEAD requests. --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org