This repository contains example programs that demonstrate how to use the HttpWatch automation API to record and analyze HTTP traffic from Google Chrome.
HttpWatch is an HTTP analyzer that can be controlled programmatically via a COM automation interface, making it easy to integrate HTTP recording and analysis into scripts and test frameworks.
Microsoft Edge: Every example also supports Microsoft Edge. See the comment at the top of each source file for the one-line (or few-line) change needed to switch from Chrome to Edge.
Records and analyzes the HTTP traffic for a single web page and prints load statistics to the console.
Available in four languages:
| Language | Folder |
|---|---|
| C# (.NET) | page_check/csharp |
| JavaScript (WSH) | page_check/javascript |
| Ruby | page_check/ruby |
| VBScript (WSH) | page_check/VBScript |
Uses Selenium to automate a browser form interaction while HttpWatch records the generated HTTP traffic. Demonstrates how to attach HttpWatch to a Selenium-controlled browser session.
| Language | Folder |
|---|---|
| C# (.NET) | form_fill_selenium/csharp |
- HttpWatch installed (Professional or Basic Edition)
- Google Chrome installed (or Microsoft Edge - see note above)
- Windows OS (HttpWatch is a Windows application)
- Additional per-example prerequisites are listed in each example's README.md
The source code for all examples is available on GitHub at https://github.com/HttpWatch/api_examples.
Choose one of the following methods to get a local copy:
Git command line
git clone https://github.com/HttpWatch/api_examples.gitGitHub Desktop
- Install GitHub Desktop if you haven't already.
- Open GitHub Desktop and select File ? Clone repository.
- Click the URL tab, paste
https://github.com/HttpWatch/api_examplesand choose a local path. - Click Clone.
Visual Studio
- Open Visual Studio and select File ? Clone Repository (or from the Git menu, choose Clone Repository).
- Paste
https://github.com/HttpWatch/api_examplesinto the repository location field and choose a local path. - Click Clone.
Download ZIP (no Git required) On the repository page, click the Code button and select Download ZIP, then extract the archive to a folder of your choice.