Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl download drupal-check.phar ,the file content is not found. #185

Closed
dzpdzp opened this issue Aug 3, 2020 · 2 comments
Closed

curl download drupal-check.phar ,the file content is not found. #185

dzpdzp opened this issue Aug 3, 2020 · 2 comments

Comments

@dzpdzp
Copy link

dzpdzp commented Aug 3, 2020

How is drupal-check installed?
drupal-check is installed using the phar

Environment:

  • OS: Linux
  • PHP Version: PHP 7.3.20-1+ubuntu18.04.1+deb.sury.org+1 (cli)
  • Drupal core: 8.6.16

Describe the bug
use curl to download phar file ,the file content is NOT FOUND.
1.sudo -su roc curl -O -L https://github.com/mglaman/drupal-check/releases/download/latest/drupal-check.phar
out put :
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9 100 9 0 0 4 0 0:00:02 0:00:02 --:--:-- 4
2.cat drupal-check.phar
output Not Found.

Console output
sudo -su roc curl -O -L https://github.com/mglaman/drupal-check/releases/download/latest/drupal-check.phar -vvv
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 140.82.113.4...

  • TCP_NODELAY set
  • Connected to github.com (140.82.113.4) port 443 (#0)
  • ALPN, offering h2
  • ALPN, offering http/1.1
  • successfully set certificate verify locations:
  • CAfile: /etc/ssl/certs/ca-certificates.crt
    CApath: /etc/ssl/certs
    } [5 bytes data]
  • (304) (OUT), TLS handshake, Client hello (1):
    } [512 bytes data]
  • (304) (IN), TLS handshake, Server hello (2):
    { [122 bytes data]
  • (304) (IN), TLS Unknown, Certificate Status (22):
    { [1 bytes data]
  • (304) (IN), TLS handshake, Unknown (8):
    { [25 bytes data]
  • (304) (IN), TLS Unknown, Certificate Status (22):
    { [1 bytes data]
  • (304) (IN), TLS handshake, Certificate (11):
    { [2976 bytes data]
  • (304) (IN), TLS Unknown, Certificate Status (22):
    { [1 bytes data]
  • (304) (IN), TLS handshake, CERT verify (15):
    { [264 bytes data]
  • (304) (IN), TLS Unknown, Certificate Status (22):
    { [1 bytes data]
  • (304) (IN), TLS handshake, Finished (20):
    { [36 bytes data]
  • (304) (OUT), TLS change cipher, Client hello (1):
    } [1 bytes data]
  • (304) (OUT), TLS Unknown, Certificate Status (22):
    } [1 bytes data]
  • (304) (OUT), TLS handshake, Finished (20):
    } [36 bytes data]
  • SSL connection using unknown / TLS_AES_128_GCM_SHA256
  • ALPN, server accepted to use http/1.1
  • Server certificate:
  • subject: C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=github.com
  • start date: May 5 00:00:00 2020 GMT
  • expire date: May 10 12:00:00 2022 GMT
  • subjectAltName: host "github.com" matched cert's "github.com"
  • issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA
  • SSL certificate verify ok.
    0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0} [5 bytes data]
  • (304) (OUT), TLS Unknown, Unknown (23):
    } [1 bytes data]

GET /mglaman/drupal-check/releases/download/latest/drupal-check.phar HTTP/1.1
Host: github.com
User-Agent: curl/7.58.0
Accept: /

{ [5 bytes data]

  • (304) (IN), TLS Unknown, Certificate Status (22):
    { [1 bytes data]
  • (304) (IN), TLS handshake, Newsession Ticket (4):
    { [57 bytes data]
  • (304) (IN), TLS Unknown, Certificate Status (22):
    { [1 bytes data]
  • (304) (IN), TLS handshake, Newsession Ticket (4):
    { [57 bytes data]
  • (304) (IN), TLS Unknown, Unknown (23):
    { [1 bytes data]
    < HTTP/1.1 404 Not Found
    < server: GitHub.com
    < date: Mon, 03 Aug 2020 03:32:55 GMT
    < content-type: text/plain; charset=utf-8
    < status: 404 Not Found
    < vary: X-PJAX, Accept-Encoding, Accept, X-Requested-With
    < cache-control: no-cache
    < strict-transport-security: max-age=31536000; includeSubdomains; preload
    < x-frame-options: deny
    < x-content-type-options: nosniff
    < x-xss-protection: 1; mode=block
    < expect-ct: max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"
    < content-security-policy: default-src 'none'; base-uri 'self'; connect-src 'self'; form-action 'self'; img-src 'self' data:; script-src 'self'; style-src 'unsafe-inline'
    < Set-Cookie: _gh_sess=BIT%2FUMu7OAwlqGdzcpHVncxPI3FM6oU9jljssitUgCKyCxAFlsqxiaYzqXajD1APW0YzreIo8IPxoXIQr7eVbTr6AvsKDme7PRQXIEpxr%2FjWOGig0a3dy4v93JHcNM1nG1w%2F6vifSlAIsAsQkpmFdtDYwr%2B8oN5XvhvP9MXmVLM1dkkOutECxNWf5kf4mrNekbSFEJTWZCDdv2YBlrclBGZKEb9CtHhKVna0fav5fIlvQkXUKfUipysE4O%2F0HKeUuofEc9eQKI6k8OJx5dI24w%3D%3D--s%2F%2Fje92hDe1UNakG--POnQy0Wi6CZuQkY%2Fsgu3Iw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
    < Set-Cookie: _octo=GH1.1.2015614906.1596425575; Path=/; Domain=github.com; Expires=Tue, 03 Aug 2021 03:32:55 GMT; Secure; SameSite=Lax
    < Set-Cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 03 Aug 2021 03:32:55 GMT; HttpOnly; Secure; SameSite=Lax
    < Content-Length: 9
    0 9 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0{ [5 bytes data]
  • (304) (IN), TLS Unknown, Unknown (23):
    { [1 bytes data]
    < X-GitHub-Request-Id: 41C1:3688:A59D3E:114D24B:5F278567
    <
    { [9 bytes data]
    100 9 100 9 0 0 4 0 0:00:02 0:00:02 --:--:-- 4
  • Connection #0 to host github.com left intact
@dzpdzp
Copy link
Author

dzpdzp commented Oct 20, 2020

Hi,yuminghui.
非常感谢!

@dzpdzp dzpdzp closed this as completed Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants