~ 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: [email protected] For additional commands, e-mail: [email protected]
