...
But why would you upgraded to an old version?
my bad for not keeping with the all the versions.
still I am wondering why a command that used to work with the api, does not work with 2.2.6.
WARN: '{"command":"summary"}' returned nothing
Either you don't have access to the API since you haven't granted access or you mistyped it.
If you didn't mistype that, then if you use your original cgminer API settings then that command will work.
The access control changed so that if you didn't modify your cgminer options, you would still have read access, but no write/priviledged access.
As I stated at the time - it was a security fix.
Granting access to destroy your rig or steal your hashes by default seemed like a bad idea.
You now have to choose to let people destroy it or steal hashes (the 'W:' prefix)
I'll waste my time posting the relevant RPC API contents of the README since you didn't read it all:
RPC API
If you start cgminer with the "--api-listen" option, it will listen on a simple TCP/IP socket for single string API requests from the same machine running cgminer and reply with a string and then close the socket each time
If you add the "--api-network" option, it will accept API requests from any network attached computer.
You can only access the comands that reply with data in this mode.
By default, you cannot access any privileged command that affects the miner -
you will receive an access denied status message see --api-allow below.
You can specify IP addresses/prefixes that are only allowed to access the API with the "--api-allow" option e.g. --api-allow W:192.168.0.1,10.0.0/24 will allow 192.168.0.1 or any address matching 10.0.0.*, but nothing else
IP addresses are automatically padded with extra '.0's as needed
Without a /prefix is the same as specifying /32
0/0 means all IP addresses.
The 'W:' on the front gives that address/subnet privileged access to commands that modify cgminer.
Without it those commands return an access denied status.
Privileged access is checked in the order the IP addresses were supplied to "--api-allow"
The first match determines the privilege level.
Using the "--api-allow" option overides the "--api-network" option if they are both specified
With "--api-allow", 127.0.0.1 is not by default given access unless specified
See that last line ...
If you don't run the current version, you can read the NEWS to work out when different options were added.