Package: curl
Version: 7.88.1-10+deb12u5
Severity: normal
Tags: upstream
X-Debbugs-Cc: dan...@haxx.se, debbug.c...@sideload.33mail.com

cURL neglects to follow a redirection for a particular URL
(“http://lawlita.com/”) which was originally a disposable email
service at one point but no longer exists. When visiting that URL in a
GUI browser, it instantly redirects to a “parking” service
(“https://www.hugedomains.com/domain_profile.cfm?d=lawlita.com”). But
cURL stops short of finding that:

===8<------------------------------
$ curl -vvvvv --ssl --socks4a 127.0.0.1:9050 --connect-timeout 240 -L --head -w 
'(%{url} [aka %{redirect_url}] → [effective URL] "%{url_effective}")' --globoff 
http://lawlita.com
Warning: --ssl is an insecure option, consider --ssl-reqd instead
*   Trying 127.0.0.1:9050...
* Connected to 127.0.0.1 (127.0.0.1) port 9050 (#0)
* SOCKS4 communication to lawlita.com:80
* SOCKS4a request granted.
* Connected to 127.0.0.1 (127.0.0.1) port 9050 (#0)
> HEAD / HTTP/1.1
> Host: lawlita.com
> User-Agent: curl/7.88.1
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 404 Not Found
HTTP/1.0 404 Not Found
< cache-control: no-cache
cache-control: no-cache
< content-type: text/html
content-type: text/html
< x-reason: UnsupportedMethod
x-reason: UnsupportedMethod

<
* Closing connection 0
(http://lawlita.com [aka ] → [effective URL] "http://lawlita.com/";)
===8<------------------------------

My guess is cURL sees a 404 error and gives up early.

-- System Information:
Debian Release: 12.5
  APT prefers stable-updates
  APT policy: (990, 'stable-updates'), (990, 'stable-security'), (990, 
'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-28-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages curl depends on:
ii  libc6     2.36-9+deb12u7
ii  libcurl4  7.88.1-10+deb12u5
ii  zlib1g    1:1.2.13.dfsg-1

curl recommends no packages.

curl suggests no packages.

-- no debconf information

Reply via email to