AppPacCap

Application Packet Capture: A better way to PCAP.

Web Server

AppPacCap's RESTful API is provided through a web service interface that runs on the IP and port that you configure. This web server responds not only to the API requests but can also be used to serve up web pages. A browser based interface is the primary method for user interaction. A web-based interface capability provides the user a high degree of customization options where pages can be created that display the information most important to you. The default interface that comes with AppPacCap shows the way that the API can be used to create dynamic content on a single page. However, multiple pages can be created for the user to navigate between.

It is very easy to provide custom pages. In the AppPacCap installation directory under the http folder, simply create another subfolder to hold your web pages and associated support files such as CSS or Javascript.

	                  
INSTALL_DIRECTORY\http
			\default
				\index.html
			\NEW_THEME_NAME
				\page1.html
				\page2.html
				\pageX.html
	                  
	                

Static Placeholders

Static placeholders are markers in your web page that AppPacCap will replace when it is served up. These allow you to access dynamic content, such as parameters, or the authentication token. All tokens are enclosed in { }, start with %HD_ and are not case senstive. A full list of the currently available placeholders are below:

  • {%hd_token}
    This will be replaced with just the token value or an empty string if no token is set.
  • {%hd_link_token}
    This will be replaced with a link-ready token (i.e. ?token=TOKENVALUE) or an empty string if no token is set.
  • {%hd_ajax_token}
    This will be replaced with an AJAX-ready token (i.e. "token": "TOKENVALUE") or an empty string if no token is set.
  • {%hd_post_params}
    This will be replaced with a Javascript style variable named 'params' that contains a key=>value of the post parameters.
  • {%hd_param_string}
    This will be replaced with a base64 string of a dictionary object of the post parameters.