Skip to content

Instantly share code, notes, and snippets.

@wd5gnr
Created July 21, 2026 21:06
Show Gist options
  • Select an option

  • Save wd5gnr/09f3b03991db0f7c143bfbc7f0e2292b to your computer and use it in GitHub Desktop.

Select an option

Save wd5gnr/09f3b03991db0f7c143bfbc7f0e2292b to your computer and use it in GitHub Desktop.
Fix upload test on OpenSpeedTest with uhttpd (OpenWRT)
#!/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