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

Less verbose CURL actions? #153

Open
theyosh opened this issue Nov 20, 2024 · 0 comments
Open

Less verbose CURL actions? #153

theyosh opened this issue Nov 20, 2024 · 0 comments

Comments

@theyosh
Copy link

theyosh commented Nov 20, 2024

Is there a reason that the curl command is running with verbose on? It give a lot of output in my cron runs. Can this be put to 0? So the cron output is clean again.

curl_setopt($ch, CURLOPT_VERBOSE, 1);

Procudes this in my cron output

* Host api.unsplash.com:443 was resolved.
* IPv6: (none)
* IPv4: 151.101.37.181
*   Trying 151.101.37.181:443...
* ALPN: curl offers http/1.1
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* SSL connection using TLSv1.2 / ECDHE-RSA-CHACHA20-POLY1305 / X25519 / RSASSA-PSS
* ALPN: server accepted http/1.1
* Server certificate:
*  subject: CN=*.unsplash.com
*  start date: Apr  7 01:50:15 2024 GMT
*  expire date: May  9 01:50:14 2025 GMT
*  subjectAltName: host "api.unsplash.com" matched cert's "*.unsplash.com"
*  issuer: C=BE; O=GlobalSign nv-sa; CN=GlobalSign Atlas R3 DV TLS CA 2024 Q1
*  SSL certificate verify ok.
*   Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
*   Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
*   Certificate level 2: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* Connected to api.unsplash.com (151.101.37.181) port 443
* using HTTP/1.x
> GET /photos/random?client_id=EcWdaN66CoCB--vvl4O1y88onlAQjsGm6734anQGGBI&count=1&query=nature HTTP/1.1
Host: api.unsplash.com
Accept: */*

* Request completely sent off
< HTTP/1.1 200 OK
< Connection: keep-alive
< Content-Length: 4626
< Server: Cowboy
< Report-To: {"group":"heroku-nel","max_age":3600,"endpoints":[{"url":["https://nel.heroku.com/reports?ts=1731966004&sid=c46efe9b-d3d2-4a0c-8c76-bfafa16c5add&s=2gHOX3k2N7vQLNGHn5gQP7%2FfXln%2FX%2FSBblXZM%2FG3cC4%3D"](https://nel.heroku.com/reports?ts=1731966004&sid=c46efe9b-d3d2-4a0c-8c76-bfafa16c5add&s=2gHOX3k2N7vQLNGHn5gQP7%2FfXln%2FX%2FSBblXZM%2FG3cC4%3D)}]}
< Reporting-Endpoints: heroku-nel=https://nel.heroku.com/reports?ts=1731966004&sid=c46efe9b-d3d2-4a0c-8c76-bfafa16c5add&s=2gHOX3k2N7vQLNGHn5gQP7%2FfXln%2FX%2FSBblXZM%2FG3cC4%3D
< Nel: {"report_to":"heroku-nel","max_age":3600,"success_fraction":0.005,"failure_fraction":0.05,"response_headers":["Via"]}
< Content-Type: application/json
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: *
< Access-Control-Allow-Headers: *
< Access-Control-Expose-Headers: Link,X-Total,X-Per-Page,X-RateLimit-Limit,X-RateLimit-Remaining
< Cache-Control: private,max-age=0,stale-if-error=3887,stale-while-revalidate=0
< X-Unsplash-Version: v1
< X-Powered-By: hero-app
< X-Version: d1b09a5066893be762f7556f92665f5378f3b84a
< Content-Language: en
< Etag: W/"5c60d291c8bf318b29d90148ccc32ee9"
< X-Ratelimit-Limit: 50
< X-Ratelimit-Remaining: 49
< X-Request-Id: 8da592c2-90b6-4df7-81c2-63ce7ebe62cb
< X-Runtime: 0.032119
< Strict-Transport-Security: max-age=63072000; includeSubDomains
< Via: 1.1 vegur, 1.1 varnish, 1.1 varnish
< Accept-Ranges: bytes
< Date: Mon, 18 Nov 2024 21:40:04 GMT
< X-Served-By: cache-iad-kiad7000071-IAD, cache-ams2100092-AMS
< X-Cache: MISS, MISS
< X-Cache-Hits: 0, 0
< X-Timer: S1731966005.583957,VS0,VE130
< Vary: Accept-Encoding,Authorization,Accept-Language,Accept
< 
* Connection #0 to host api.unsplash.com left intact
* Host images.unsplash.com:443 was resolved.
* IPv6: 2a04:4e42:9::720
* IPv4: 151.101.38.208
*   Trying [2a04:4e42:9::720]:443...
* ALPN: curl offers http/1.1
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* SSL connection using TLSv1.2 / ECDHE-RSA-CHACHA20-POLY1305 / X25519 / RSASSA-PSS
* ALPN: server accepted http/1.1
* Server certificate:
*  subject: CN=images.unsplash.com
*  start date: Oct  9 01:16:11 2024 GMT
*  expire date: Nov 10 01:16:10 2025 GMT
*  subjectAltName: host "images.unsplash.com" matched cert's "images.unsplash.com"
*  issuer: C=BE; O=GlobalSign nv-sa; CN=GlobalSign Atlas R3 DV TLS CA 2024 Q4
*  SSL certificate verify ok.
*   Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
*   Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
*   Certificate level 2: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* Connected to images.unsplash.com (2a04:4e42:9::720) port 443
* using HTTP/1.x
> GET /photo-1494500764479-0c8f2919a3d8?ixid=M3w2NzEzNjd8MHwxfHJhbmRvbXx8fHx8fHx8fDE3MzE5NjYwMDR8&ixlib=rb-4.0.3 HTTP/1.1
Host: images.unsplash.com
Accept: */*

* Request completely sent off
< HTTP/1.1 200 OK
< Connection: keep-alive
< Content-Length: 1418321
< x-imgix-id: 5b16676f75b5e5288f3ea067f6eb9a08b30391d9
< cache-control: public, max-age=31536000
< last-modified: Tue, 05 Nov 2024 12:09:52 GMT
< Server: imgix
< Date: Mon, 18 Nov 2024 21:40:05 GMT
< Age: 1157412
< Accept-Ranges: bytes
< Content-Type: image/jpeg
< Access-Control-Allow-Origin: *
< Timing-Allow-Origin: *
< Cross-Origin-Resource-Policy: cross-origin
< X-Content-Type-Options: nosniff
< X-Served-By: cache-fra-etou8220038-FRA, cache-ams2100103-AMS
< X-Cache: HIT, HIT
< 
* Connection #0 to host images.unsplash.com left intact
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

1 participant