The web script index provides some administration of web scripts, in particular, for those developers creating new web scripts.
With a complete Folder Listing web script implementation, you can register and test your web script.
When testing status response codes, it is useful to test with the cURL client to access to the status code sent on the HTTP response. For example, to repeat the ‘folder does not exist’ test with cURL, type the following in your command line:
curl -uadmin:admin -v "http://localhost:8080/alfresco/service/dir/doesnotexist"
The returned response is similar to the following where the 404 status code is explicitly logged:
* About to connect() to localhost port 8080 (#0) * Trying ::1... connected * Connected to localhost (::1) port 8080 (#0) * Server auth using Basic with user 'admin' > GET /alfresco/service/dir/doesnotexist HTTP/1.1 > Authorization: Basic YWRtaW46YWRtaW4= > Host: localhost:8080 > Accept: */* > < HTTP/1.1 404 Not Found < Server: Apache-Coyote/1.1 < Cache-Control: no-cache < Pragma: no-cache < Content-Type: text/html;charset=UTF-8 < Content-Length: 1487 < Date: Tue, 26 Jan 2010 10:28:28 GMT
You have registered and tested a web script implementation. Each time a web script component file is modified, you must register the web script again by using the web script index page.