Package: wget
Version: 1.21-1+deb11u1
Severity: normal

Hi,

I want to use the option --retry-on-http-error to retry until I get a response 
of 200. This fails:

$ wget --header="Cookie: bggusername=Brettspielhelden%20DD;bggpassword=removed" 
--header="Accept-Language: de" --retry-on-http-error=202 
"https://www.boardgamegeek.com/xmlapi2/collection?username=Brettspielhelden%20DD&own=1&showprivate=1&stats=1&excludesubtype=boardgameexpansion";
 --output-document basegames.xml
--2022-01-05 23:34:22--  
https://www.boardgamegeek.com/xmlapi2/collection?username=Brettspielhelden%20DD&own=1&showprivate=1&stats=1&excludesubtype=boardgameexpansion
Resolving hostname www.boardgamegeek.com (www.boardgamegeek.com)… 130.211.47.221
Verbindungsaufbau zu www.boardgamegeek.com 
(www.boardgamegeek.com)|130.211.47.221|:443 … connected.
HTTP request sent, waiting … 202 Accepted
Length: 187 [text/xml]
Will be saved in »basegames.xml«.

basegames.xml                100%[===========================================>] 
    187  --.-KB/s    in 0s

2022-01-05 23:34:23 (500 MB/s) - »basegames.xml« saved [187/187]

You see that I get the document for the return value 202 which is what I want 
to avoid. 202 is used on boardgamegeek to specify, that the requested document 
is still created and the download request should be done a few seconds later.

Is the https connection the problem? The man page tells nothing about using 
this option with https so I assumed it should work.

Jens

Reply via email to