See the Wapp Environment
use POST
} return } if {[string match {send content please
} return } db eval {BEGIN} db eval {INSERT INTO hits(ip_address_hash, arch, date) VALUES ($iphash, $arch, date($systemTime, 'unixepoch'))} set pkgs [split $body "\n"] foreach pkg $pkgs { if {[string length $pkg] != 0} { db eval {INSERT INTO package_installs(package_name, arch, date) VALUES ($pkg, $arch, date($systemTime, 'unixepoch'))} } } db eval {COMMIT} wapp-reply-code 200 wapp-trim {we promise to do our best to keep this data safe. thank you for your donation.
} } wapp-start $::argv