Package: curl
Version: 7.47.0-1
Severity: important

This bug breaks workflow for some people that use curl to probe for
remote file existence. Code 404 is returned by the server but Curl
exits with 0.

Repro attached, to use:

$ cat response.txt | socket -s 9999 &
$ http_proxy="localhost:9999" curl 
http://archive.ubuntu.com/dists/trusty/InRelease
Mission 404zorg: /tmp $ echo $?
0

Regards,
Eduard.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0+ (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)

Versions of packages curl depends on:
ii  libc6            2.22-10
ii  libcurl3-gnutls  7.47.0-1
ii  zlib1g           1:1.2.8.dfsg-2+b1

curl recommends no packages.

curl suggests no packages.

-- no debconf information

-- 
<> Meike: Wo ist denn dein Göttergatte?
<alphascorpii> öhhmmmm, pffffffffft.
HTTP/1.1 404 Not Found
Content-Length: 11
Date: Sun Jun  5 09:27:16 2016
Server: Debian Apt-Cacher NG/0.9.4
X-Original-Source: http://archive.ubuntu.com/dists/trusty/InRelease
Connection: Keep-Alive

Mission 404

Reply via email to