Bug fix

Found a bug in the page that was preventing the API from actuating if
no get or post values were set.  Problem solved by turning on API mode
by reading the URI instead.