Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9F49EFD1E for ; Tue, 7 May 2013 03:04:00 +0000 (UTC) Received: (qmail 50534 invoked by uid 500); 7 May 2013 03:04:00 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 49928 invoked by uid 500); 7 May 2013 03:03:57 -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 49892 invoked by uid 99); 7 May 2013 03:03:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 03:03:55 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HK_RANDOM_ENVFROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lbrtchx@gmail.com designates 209.85.223.179 as permitted sender) Received: from [209.85.223.179] (HELO mail-ie0-f179.google.com) (209.85.223.179) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 03:03:51 +0000 Received: by mail-ie0-f179.google.com with SMTP id c13so142845ieb.38 for ; Mon, 06 May 2013 20:03:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=jYt1E8LKRjF3I1BF6WXio26TXT5+nDBcoyRyAsUJmJw=; b=HeJpWOwCXOqIpVVFEywTHwO42lhwjNo6CYjGXLIqLoW4JbOfzPgnNdMhpGuDE1pppm 7KvLVWCjLuOAVKpVg87XPvMNzpddP8UnlqqUaU3KFt6KGK126T07zffUObUPnDdFDCOl E3AR5Gj+cItnVyKAa9EVqDl9q69Tvp51VH9qvqy07dGZwHqK+bEsaxgMJhRxKcmCI/zv 8Ezw31jH6XQ+m7wSI0ttwGBMQwOCc1LxBKiEmQ31rbk986+VC1fZicBGm2NReJ9L8oPo iFb3SbMYkDzZ4bXLQZ/bQ8VQE1F6A3eFzT0mWx0L6tezsG8j/ewGAlO+dKOx/JlLMtrm Xivg== MIME-Version: 1.0 X-Received: by 10.50.12.40 with SMTP id v8mr3509199igb.15.1367895810910; Mon, 06 May 2013 20:03:30 -0700 (PDT) Received: by 10.43.90.4 with HTTP; Mon, 6 May 2013 20:03:30 -0700 (PDT) Date: Tue, 7 May 2013 03:03:30 +0000 Message-ID: Subject: why are so different the response headers as reported by wget and httpclient? From: Albretch Mueller To: httpclient-users@hc.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org ~ and what do you have to do get the same or a similar response in order to strategize around the "HTTP/1.1 302 Moved Temporarily" using httpclient? ~ thanks, lbrtchx ~ // __ wget $ wget --server-response --spider "http://download.ted.com/talks/LuisVonAhn_2011X-480p.mp4?apikey=TEDDOWNLOAD" Spider mode enabled. Check if remote file exists. --2013-05-06 22:51:07-- http://download.ted.com/talks/LuisVonAhn_2011X-480p.mp4?apikey=TEDDOWNLOAD Resolving download.ted.com (download.ted.com)... 54.242.198.180 Connecting to download.ted.com (download.ted.com)|54.242.198.180|:80... connected. HTTP request sent, awaiting response... HTTP/1.1 302 Moved Temporarily Server: nginx Date: Tue, 07 May 2013 02:51:22 GMT Content-Type: text/html Connection: keep-alive X-Cache: HIT Location: http://video.ted.com/talk/podcast/2011X/None/LuisVonAhn_2011X-480p.mp4 Location: http://video.ted.com/talk/podcast/2011X/None/LuisVonAhn_2011X-480p.mp4 [following] Spider mode enabled. Check if remote file exists. --2013-05-06 22:51:08-- http://video.ted.com/talk/podcast/2011X/None/LuisVonAhn_2011X-480p.mp4 Resolving video.ted.com (video.ted.com)... 4.27.18.254, 8.254.54.254 Connecting to video.ted.com (video.ted.com)|4.27.18.254|:80... connected. HTTP request sent, awaiting response... HTTP/1.1 200 OK Cache-Control: public, max-age=31536000 Date: Tue, 07 May 2013 02:51:22 GMT Content-Length: 116040512 Content-Type: video/mp4 ETag: "72d080c60cb8fdd4add7187d3ffedcd3" Expires: Sun, 27 Apr 2014 13:47:31 GMT Last-Modified: Sat, 11 Aug 2012 01:47:29 GMT Accept-Ranges: bytes Server: AmazonS3 x-amz-id-2: g2uS6EA5QCq8d0uwrem9QQueXR+L8lHNj85ePL1WD8Ju6iV94J3QuRGsCdqPgTMN x-amz-request-id: F83B24FCD7D43060 Connection: keep-alive Length: 116040512 (111M) [video/mp4] Remote file exists. ~ // __ httpclient // __ |http://download.ted.com/talks/LuisVonAhn_2011X-480p.mp4?apikey=TEDDOWNLOAD| // __ httpResponse.getStatusLine().toString(): |HTTP/1.1 404 Not Found| // __ 7 response headers received from server: // __ Server: Footprint 4.8/FPMCP // __ Mime-Version: 1.0 // __ Date: Tue, 07 May 2013 02:44:01 GMT // __ Content-Type: text/html // __ Content-Length: 633 // __ Expires: Tue, 07 May 2013 02:44:01 GMT // __ Connection: close ~ --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org