bugGNU Wget - Bugs: bug #20324, Wget doesn't handle HEAD failures...

 
 

bug #20324: Wget doesn't handle HEAD failures gracefully

Submitted by:  Micah Cowan <micahcowan>
Submitted on:  Tue 03 Jul 2007 07:14:12 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed In Repository
Privacy: PublicAssigned to: Mauro Tortonesi <mtortonesi>
Originator Name: Jochen RoderburgOpen/Closed: Closed
Release: trunkOperating System: None
Reproducibility: Every TimeFixed Release: None
Planned Release: 1.11Regression: Yes
Work Required: NonePatch Included: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 30 Aug 2007 04:18:24 AM UTC, comment #2:

Merged in r2371 (fix is in same branch as bug 20323).

Micah Cowan <micahcowan>
Tue 03 Jul 2007 07:17:27 AM UTC, comment #1:

From http://www.mail-archive.com/wget@sunsite.dk/msg09312.html :

Zitat von Jochen Roderburg <[EMAIL PROTECTED]>:

> In the time-stamping mode wget always issued first a HEAD request when there
> was
> a local file, and later a GET request when after inspecting the HEAD outpout
> it
> found out that it should do so.
>
> The wget 1.11 now always does the HEAD request, so this problem may be a
> little related to the other just-repaired problem.


Now I even stumbled over a case where this behaviour leads to an error, namely
when the server doesn't like the HEAD request and responds with an error.
Therefore my additional question: Is this HEAD request intended or is it an
error? Has it perhaps to do with the new "Content-Disposition" stuff?

I encountered the new problem when downloading a new Eudora Beta. This is
delivered via a cgi which makes a redirection to the real file link.
A HEAD request for the original link is answered with "500 Server Error".

wget.111b1 -d http://www.eudora.com/cgi-bin/export.cgi?productid=EUDORA_win_7106

DEBUG output created by Wget 1.11-beta-1 on linux-gnu.

--10:53:19-- http://www.eudora.com/cgi-bin/export.cgi?productid=EUDORA_win_7106
Resolving http://www.eudora.com... 199.106.114.30
Caching http://www.eudora.com => 199.106.114.30
Connecting to http://www.eudora.com|199.106.114.30|:80... connected.
Created socket 3.
Releasing 0x08086920 (new refcount 1).

---request begin---
HEAD /cgi-bin/export.cgi?productid=EUDORA_win_7106 HTTP/1.0
User-Agent: Wget/1.11-beta-1
Accept: /
Host: http://www.eudora.com
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 500 Server Error
Server: Netscape-Enterprise/6.0
Date: Wed, 30 Aug 2006 08:53:20 GMT
Content-length: 305
Content-type: text/html
Connection: keep-alive

---response end---
500 Server Error
Registered socket 3 for persistent reuse.
10:53:21 ERROR 500: Server Error.

wget.1102 -d http://www.eudora.com/cgi-bin/export.cgi?productid=EUDORA_win_7106

DEBUG output created by Wget 1.10.2 on linux-gnu.

--10:51:22-- http://www.eudora.com/cgi-bin/export.cgi?productid=EUDORA_win_7106
=> `export.cgi?productid=EUDORA_win_7106'
Resolving http://www.eudora.com... 199.106.114.30
Caching http://www.eudora.com => 199.106.114.30
Connecting to http://www.eudora.com|199.106.114.30|:80... connected.
Created socket 3.
Releasing 0x08084e60 (new refcount 1).

---request begin---
GET /cgi-bin/export.cgi?productid=EUDORA_win_7106 HTTP/1.0
User-Agent: Wget/1.10.2
Accept: /
Host: http://www.eudora.com
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 302 Moved Temporarily
Server: Netscape-Enterprise/6.0
Date: Wed, 30 Aug 2006 08:51:21 GMT
Location:
http://www.eudora.com/download/eudora/windows/7.1/beta/Eudora_7.1.0.6_beta.exe
Content-length: 0
Connection: keep-alive

---response end---
302 Moved Temporarily
Registered socket 3 for persistent reuse.
Location:
http://www.eudora.com/download/eudora/windows/7.1/beta/Eudora_7.1.0.6_beta.exe
[
following]
Skipping 0 bytes of body: [] done.
--10:51:22--
http://www.eudora.com/download/eudora/windows/7.1/beta/Eudora_7.1.0.6_beta.e
xe
=> `Eudora_7.1.0.6_beta.exe'
Reusing existing connection to http://www.eudora.com:80.
Reusing fd 3.

---request begin---
GET /download/eudora/windows/7.1/beta/Eudora_7.1.0.6_beta.exe HTTP/1.0
User-Agent: Wget/1.10.2
Accept: /
Host: http://www.eudora.com
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 200 OK
Server: Netscape-Enterprise/6.0
Date: Wed, 30 Aug 2006 08:51:21 GMT
Content-type: application/octet-stream
Last-modified: Mon, 28 Aug 2006 21:29:37 GMT
Content-length: 17403352
Accept-ranges: bytes
Connection: keep-alive

---response end---
200 OK
Length: 17,403,352 (17M) [application/octet-stream]

100%[==============================================>] 17,403,352 322.84K/s
ETA 00:00

10:52:29 (256.51 KB/s) - `Eudora_7.1.0.6_beta.exe' saved [17403352/17403352]

Regards, J.Roderburg

Micah Cowan <micahcowan>
Tue 03 Jul 2007 07:14:12 AM UTC, original submission:
Micah Cowan <micahcowan>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by micahcowan (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 30 Aug 2007 04:18:24 AM UTCmicahcowanStatusNone=>Fixed In Repository
      Open/ClosedOpen=>Closed
    Tue 03 Jul 2007 11:38:33 PM UTCmicahcowanAssigned toNone=>mtortonesi
    Tue 03 Jul 2007 07:20:35 AM UTCmicahcowanStatusConfirmed=>None
    Tue 03 Jul 2007 07:17:27 AM UTCmicahcowanStatusNone=>Confirmed
      ReproducibilityNone=>Every Time

    Back to the top


    Powered by Savane 3.1-cleanup1