Created
July 21, 2026 21:06
-
-
Save wd5gnr/09f3b03991db0f7c143bfbc7f0e2292b to your computer and use it in GitHub Desktop.
Fix upload test on OpenSpeedTest with uhttpd (OpenWRT)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # this file: /www/cgi-bin/ost-upload | |
| # Change index.html (in openspeedtest directory) like this: | |
| # var openSpeedTestServerList = [ | |
| # {"ServerName":"Home", "Download":"downloading", "Upload":"/cgi-bin/ost-upload", "ServerIcon":"DefaultIcon"} | |
| # Plus make this file executable in /www/cgi-bin | |
| cat >/dev/null # read all the data | |
| # sure, whatever.... | |
| printf "Status: 200 OK\r\n" | |
| printf "Content-Type: application/octet-stream\r\n" | |
| printf "Content-Length: 0\r\n" | |
| printf "Cache-Control: no-store\r\n" | |
| printf "\r\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment