On Tue, 10 Nov 2026 05:36:15 GMT, Albert Mingkun Yang <[email protected]> wrote:

> Use `WGET_OPTIONS` to provide custom UA so that wget jtreg works for 
> github-action CI.
> 
> Test: GHA fails consistently before and passes with this patch
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

It seems not sending a user agent also works which suggests something on the 
other end is explicitly checking the field and blocking values that don't match 
an allowed list:

~~~
$ wget -v --user-agent "" -O /tmp/8395856.11u 
https://git.openjdk.org/jdk11u-dev/pull/3296.diff
WARNING: timestamping does nothing in combination with -O. See the manual
for details.

--2026-11-12 17:57:00--  https://git.openjdk.org/jdk11u-dev/pull/3296.diff
Resolving git.openjdk.org (git.openjdk.org)... 2a02:26f0:fd00:190::2c21, 
2a02:26f0:fd00:18a::2c21, 2.22.97.124
Connecting to git.openjdk.org 
(git.openjdk.org)|2a02:26f0:fd00:190::2c21|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://github.com/openjdk/jdk11u-dev/pull/3296.diff [following]
--2026-11-12 17:57:01--  https://github.com/openjdk/jdk11u-dev/pull/3296.diff
Resolving github.com (github.com)... 20.26.68.64
Connecting to github.com (github.com)|20.26.68.64|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: 
https://patch-diff.githubusercontent.com/raw/openjdk/jdk11u-dev/pull/3296.diff 
[following]
--2026-11-12 17:57:01--  
https://patch-diff.githubusercontent.com/raw/openjdk/jdk11u-dev/pull/3296.diff
Resolving patch-diff.githubusercontent.com 
(patch-diff.githubusercontent.com)... 20.26.68.64
Connecting to patch-diff.githubusercontent.com 
(patch-diff.githubusercontent.com)|20.26.68.64|:443... connected.
HTTP request sent, awaiting response... 200 OK
Cookie coming from patch-diff.githubusercontent.com attempted to set domain to 
github.com
Cookie coming from patch-diff.githubusercontent.com attempted to set domain to 
github.com
Length: unspecified [text/plain]
Saving to: ā€˜/tmp/8395856.11u’

/tmp/8395856.11u                            [  <=>                              
                                            ]   2.14M  6.23MB/s    in 0.3s    

2026-11-12 17:57:02 (6.23 MB/s) - ā€˜/tmp/8395856.11u’ saved [2249096]
~~~

-------------

PR Comment: https://git.openjdk.org/jdk/pull/33809#issuecomment-6831658589

Reply via email to