Request Format

When you use an HTTP request to request an image from PopChart Server, your request will be in the following format:

serveraddress/?servercommandstring

You should replace serveraddress with the hostname or address of the machine running PopChart Server, followed by the server port (which, by default, is port 2001). If you are using an HTTP redirector, you should instead give the address of the redirector, without the server port (refer to "Using HTTP Redirection").

Note: This corresponds to the externalServerAddress attribute of the PopChart Embedder. When you use the HTTP request method, you will not use a comm port.

Your server command string will consists of commands that tell PopChart Server about the PopChart image you want to generate. For example, @_FILEexamples/apfiles/bar.pcxml@_FLASH is a valid server command string. The server command string will be discussed in more detail in the next section.

For example, if your server address were http://popchart.mycompany.com:2001, and you were to use the server command string from the previous paragraph, you could request an image from PopChart Server with the following HTTP request:

http://popchart.mycompany.com:2001/?@_FILEexamples/apfiles/bar.pcxml@_FLASH

You may want to try this out yourself. Just change the server address to match that of your server (if you are running PopChart Server with the default settings on your local machine, use http://localhost:2001), and enter this URL into the address line of your web browser.

As long as your browser supports FLASH, you should see the following image: