Closed DarryDoo closed 5 years ago
strange wget works for me wget is also more universally understood as the "right" tool for file transfers curl to my understanding is for making requests and processing results.
both are capable of file transfers but wget seems more specifically designed to handle it.
perhaps different routers have a wget with https or not?
I'll look into this when I get home.
I tried using Curl, enabling a ton of stuff on DD WRT and I cannot get this to download at all as it says it is read only file system.
Any suggestions? I'm desperately trying to get this BWMON to work on my router (R6700) but I am basically just trying to follow guides (I had to look up how to SSH....) - any guidance would be amazing y'all.
in linux parts of the file system maybe mounted as read only.
If it says your file system is read only then the path you are currently on is set to read only.
Parts of the DDWRT file system maybe read only depending on how you configured the mount points in the GUI under services USB storage. Default storage location is in /tmp/mnt I believe but this isn't a good long term location so in the readme you're recommended to set a mount point in the gui to /jffs/ if you don't set this the original /jffs/ folder will be read only most likely.
I have a TP-Link Archer C8 router. Using Putty SSH to download the bwmon.tar.gz routine from the github.com site via the WGET command I get a message that the GitHub site is not HTTP (WGET only accesses HTTP and FTP sites). I get 'not found' when I use the CURL command. I formatted a USB drive to ext4 but Windows doesn't recognize the format so I can't copy downloaded files to it so I can put the USB drive in the router. Please advise. Thanks
You can also format your USB drive to NTFS if you are on windows.
That worked. Thanks
I recently discovered the reason why https does not work in wget out of the box. The problem is actually an SSL configuration issue.
I found that this script solves the problem nicely.
https://oct8l.gitlab.io/posts/2018/94/allow-ssl-in-wget-openwrt/
Cheers Darren
Hopefully I'm not wasting your time with something "everybody knows".
For the uninformed (eg. me prior to playing with this), curl switches -k: ignore certificate errors, -L: follow redirects, and -O: auto-name locally-created file.
SOLUTION:
wget
changes tocurl -kLO
. Easy peasy.