Use the HTTP Preview server when you want to quickly
test resources in a static Web project. The HTTP Preview server is a Hypertext
Transfer Protocol (HTTP) embedded test server that is integrated with the
workbench. It is intended for preliminary testing and saves you time to download,
install, and set up an HTTP server. However, as your static Web project progresses
through its development cycle you are encourage to test and run on an external
HTTP server. You can use the HTTP Preview server as a convenient way to check
for errors before you do a final test on an external HTTP server.
About this task
To create and test on an HTTP Preview server for previewing
your resources in a static Web project, complete the following steps:
Procedure
- In the Servers view, right-click and select New > Server.
The Define a New Server wizard opens.
- Under the Select the server type list, expand
the Basic folder and select HTTP Preview. Click Next.
- The Add and Remove page opens. Under the
Available projects list, select the static Web project and click the Add button.
Click Finish. The HTTP Preview server is
created in the Servers view.
- In the Project Explorer view, navigate to your static Web project
and right-click your resource you want to test.
- Select . The Run on Server wizard opens.
- Verify the Choose an existing server radio
button is enabled.
- Under the Select the server that you want to use list,
select the recently created HTTP Preview server. Click Next.
- The Add and Remove page opens. Verify the
static Web project you are testing is listed under the Configured
projects. Click Finish.
Results
The internal Web browser opens and displays the static
Web content.