Download file (with curl) from specific Wi-Fi client config

I'm triyng to use curl to download a file (or an html page) from my AP. This AP has been configured as a Wi-Fi client. Here it is the wireless config:
wireless.wifinet0=wifi-iface
wireless.wifinet0.device='radio0'
wireless.wifinet0.mode='sta'
wireless.wifinet0.network='wwan'
wireless.wifinet0.ssid='YYYY'
wireless.wifinet0.encryption='psk2'
wireless.wifinet0.key='XXXX'

Now, I want to be able to download a file with curl through this client config (through the "YYYY" SSID).
Can this be performed through CLI? If so, how can I accomplish it?

Thanks in advance. A.

install curl, download the file ?

1 Like

scp works for as long as ssh is enabled on your interface

1 Like

Assuming you want to get a file from another device or url to your router and it is hosted via https

You can just do this:

wget https://slack.com/robots.txt
cat robots.txt

If you really want to use curl, do this

opkg update
opkg install curl
curl https://slack.com/robots.txt
1 Like