CHARP test wget.sh - pupitetris/charp GitHub Wiki
A simple tester for the request CGI based on wget, just to check in a very basic way if the system is working and sending challenges.
$ ./test-wget.sh ''baseurl'' ''username'' ''remote_procedure'' ''parameters''
- ''baseurl'' - The URL where the request CGI script for the CHARP RPC can be found.
- ''username'' - The login name for an existing account in the database.
- ''remote_procedure'' - The name of the remote procedure that will be called inside the database.
- ''parameters'' - JSON-encoded array of parameters for the remote procedure. These must be enclosed in brackets.
$ ./test-wget.sh http://www.myproject.local --2011-07-05 13:33:54-- http://www.myproject.local/request Resolving www.myproject.local (www.bitapcv.local)... 127.0.0.1 Connecting to www.myproject.local (www.myproject.local)|127.0.0.1|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 75 [application/json] Saving to: “/tmp/tmp-27238.test”
100%[======================================>] 75 --.-K/s in 0s 2011-07-05 13:33:54 (1.92 MB/s) - “/tmp/tmp-27238.test” saved [75/75] {"chal":"dc79c63f9abcdef012de8bb693ff5cc2c5dd32434d3f85eadf56299127ae05d3"}