Skąd ty masz tego curla?
root@OpenWrt:~# grep OpenWrt /etc/banner
| OpenWrt 23.05-SNAPSHOT, r23077-bb03069691 |
root@OpenWrt:~# curl -v -o - https://google.com
/bin/ash: curl: not found
root@OpenWrt:~# opkg install curl
Installing curl (8.1.1-1) to root...
Downloading https://dl.eko.one.pl/openwrt-23.05/packages/x86_64/packages/curl_8.1.1-1_x86_64.ipk
Installing libcurl4 (8.1.1-1) to root...
Downloading https://dl.eko.one.pl/openwrt-23.05/packages/x86_64/packages/libcurl4_8.1.1-1_x86_64.ipk
Configuring libcurl4.
Configuring curl.
root@OpenWrt:~# curl -v -o - https://google.com
> GET / HTTP/2
> Host: google.com
> User-Agent: curl/8.1.1
> Accept: */*
>
< HTTP/2 301
< location: https://www.google.com/
< content-type: text/html; charset=UTF-8
< content-security-policy-report-only: object-src 'none';base-uri 'self';script-src 'nonce-P9LGHJYTW-h_GuGrMPWDCA' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' httpp
< date: Thu, 08 Jun 2023 20:37:19 GMT
< expires: Thu, 08 Jun 2023 20:37:19 GMT
< cache-control: private, max-age=2592000
< server: gws
< content-length: 220
< x-xss-protection: 0
< x-frame-options: SAMEORIGIN
< set-cookie: CONSENT=PENDING+076; expires=Sat, 07-Jun-2025 20:37:19 GMT; path=/; domain=.google.com; Secure
< p3p: CP="This is not a P3P policy! See g.co/p3phelp for more info."
< alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
<
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="https://www.google.com/">here</A>.
</BODY></HTML>
root@OpenWrt:~#
Działa, inaczej by nie ściągnął strony z googli. Zresztą dowolną inną stronę tak możesz pobrać.
Zresztą same cludflare też się da
root@OpenWrt:~# curl -v -o - https://api.cloudflare.com/client/v4
> GET /client/v4 HTTP/2
> Host: api.cloudflare.com
> User-Agent: curl/8.1.1
> Accept: */*
>
< HTTP/2 404
< date: Thu, 08 Jun 2023 20:40:49 GMT
< content-type: application/json
< content-length: 76
< cf-ray: 7d43f3bb3d3135a8-WAW
< cf-cache-status: DYNAMIC
< set-cookie: __cflb=0H28vgHxwvgAQtjUGU56Rb8iNWZVUvXhungn7wRF6hK; SameSite=Lax; path=/; expires=Thu, 08-Jun-23 23:10:50 GMT; HttpOnly
< server: cloudflare
<
{"success":false,"errors":[{"code":7000,"message":"No route for that URI"}]}r
Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.