URL authentication
You can use the Public service to check whether authentication is activated on the server, and therefore requires you to supply credentials.
http://servername:port/service_name/api/public/authentication
this call displays the following XML:
<value>false</value>
or
<value>true</value>
Parent topic: Write Requests Using the URL API