Use these hands-on tutorials to help get you up and
running with repository web scripts as quickly as possible.
These tutorials assume you have SkyVault Content Services installed locally at http://localhost:8080. If this is not the case you will need to amend the URLs used in the tutorials accordingly.
- Listing pre-built web scripts There are many pre-built web scripts provided out-of-the-box available for reuse. Before developing a new web script, always check to see if one already exists that supports your requirements or is near enough to save you time.
- Invoking a web script using cURL When exploring or developing web scripts, a web browser can be limiting as a client. For example, it cannot perform any HTTP method other than GET without coding. You can use an alternative client called cURL, a command line tool that supports common protocols such as FTP and HTTP. cURL is a valuable web script debugging and testing tool.
- Developing a Hello World web script Building a Hello World web script is the best way to gain an understanding of the Web Script Framework. This example is simple enough to build and execute within a few minutes.
- Creating a Hello User web script with authentication To see authentication in action, you can make a slightly more interesting Hello World example named Hello User that requires authenticated access and responds with a personalized greeting.
- Processing complex HTTP requests Content negotiation makes it possible to serve different versions of a document at a given URI so that a client can specify which version best fits its capabilities. For example, a web browser can specify which type of image is preferred, such as GIF or PNG, for display purposes.
- Configuring a web script When developing a web script, you can implement capabilities that provide flexibility in how they behave. The Web Script Framework supports this by allowing each web script to carry a configuration file, which the web script can interrogate to alter its behavior.
- Creating a web script using cache controls Caching is an important aspect of web scripts and is often required to support high-load applications such as websites backed by SkyVault Content Services. You should consider caching when developing web scripts.
- Processing multipart forms This task demonstrates how to handle multipart/form-data form submits by creating two web scripts for the following functions:
- Creating request processing web scripts When performing an HTTP POST to a web script, the posted request body often contains content that needs processing by the web script. To allow access to the request body, the Web Script Framework provides a special root object named requestbody that represents the content of the request. The requestbody is a ScriptContent object allowing access to the request content either as a string or as a content stream.
- Creating a photo search script This tutorial shows you how to develop a script that provides the ability to search a site for photos.
- Developing a Folder Listing web script This tutorial describes how to create a Folder Listing web script that mimics the behavior of the dir command in Microsoft Windows, or ls in Linux and Mac OS X.
- Creating a Folder Listing Java-backed web script A Folder Listing Java-backed web script mimics the behavior of the dir command in Microsoft Windows, or ls in Linux and Mac OS X.
- Creating a new kind of web script To extend the capabilities of the Web Script Framework, you can develop a new kind of web script to encapsulate behavior you want to reuse across many scripted web scripts.
Parent topic: Tutorials for platform extensions