Browse Source

readme for post.sh (update it)

Danja Vasiliev 10 years ago
parent
commit
8727bad905
2 changed files with 19 additions and 29 deletions
  1. 19 0
      openwrt/common/www/lib/cgi/readme.md
  2. 0 29
      openwrt/common/www/lib/cgi/sysinfo.sh

+ 19 - 0
openwrt/common/www/lib/cgi/readme.md

@@ -0,0 +1,19 @@
+Serverside scripts for SuperGlue server
+Documentation | Files | Commits
+
+## post.sh - all POST requests are redirected to this script.                                                
+## 
+## examples:
+## text:    curl --data-urlencode '<html><title>' http://host/file.html
+## image:   curl --form "userimage=@file.png" -H "Expect:" http://host/file.png 
+## command: curl --data-urlencode 'ls' http://host/cmd
+##
+## returns: 200 (+ output of operation) on success
+##          406 (+ error message in debug mode) on error
+Curently, there is only one live and public SuperGlue server running this CGI, try it: http://test.superglue.it
+
+SuperGlue browser extension / client that talks to post.sh can be found here: http://git.superglue.it/superglue/clientplugin/repository/archive.zip
+
+Take a look a SuperGlue project summary to learn more about the project.
+
+http://superglue.it

+ 0 - 29
openwrt/common/www/lib/cgi/sysinfo.sh

@@ -1,29 +0,0 @@
-#!/bin/ash
-
-echo -e "Content-type: text/html\n"
-
-echo -e "<!doctype html><html>
-<head>
-<title>Superglue test</title>
-<style>body { font-family: monospace; white-space: pre;}</style>
-</head>
-<body>
-<h2>Superglue test server</h2>
-
-$(uptime)
-
-$(head -n5 /proc/cpuinfo)
-
-$(free)
-
-$(df -h)
-
-$(env)
-
-$(echo $PATH)
-
-$(echo $USER)
-
-</body></html>"
-
-exit 0