Checks whether the authentication is supported by the server and handles the different POST request routes.
checkAuthentication(request, auth, version.needed = 1)
request
: The needed request to be made (without .cgi
).auth
: Whether authentication is requested in R.version.needed
: The minimum version of the request. If it is 1
, and the server is version 1, the function will append .cgi
to the request.A list:
request
: the request to sendauth
: whether to still send an authenticated request.checkAuthentication("makecsv", TRUE) checkAuthentication("registration", TRUE, 2)
Other development: API.request
, create.API.request.URL
, prepare.server.URL
, server.version