8000 --remote-name doesn't honor the filename after redirect with --location · Issue #1241 · curl/curl · GitHub
[go: up one dir, main page]

Skip to content

--remote-name doesn't honor the filename after redirect with --location #1241

@nodakai

Description

@nodakai

I did this

$ curl -LOJ -v https://www.archlinux.org/packages/community/x86_64/shellcheck/download/
...
< Location: http://mirrors.cicku.me/archlinux/community/os/x86_64/shellcheck-0.4.5-1-x86_64.pkg.tar.xz
...
Warning: Remote filename has no length!
* Failed writing body (0 != 2675)
  0 1772k    0  2675    0     0   2008      0  0:15:03  0:00:01  0:15:02  2008
* Closing connection 1
curl: (23) Failed writing body (0 != 2675)

I expected the following

Successfully download shellcheck-0.4.5-1-x86_64.pkg.tar.xz

curl/libcurl version

$ curl -V
curl 7.48.0-DEV (x86_64-unknown-linux-gnu) libcurl/7.48.0-DEV OpenSSL/1.0.1e zlib/1.2.3 libidn/1.18

operating system

$ uname -r
2.6.32-504.16.2.el6.x86_64
$ cat /etc/system-release
CentOS release 6.6 (Final)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0