Skip to content

HttpWatch/api-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HttpWatch API Examples

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.


Examples

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

Prerequisites

  • 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

Getting the Source Code

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.git

GitHub Desktop

  1. Install GitHub Desktop if you haven't already.
  2. Open GitHub Desktop and select File ? Clone repository.
  3. Click the URL tab, paste https://github.com/HttpWatch/api_examples and choose a local path.
  4. Click Clone.

Visual Studio

  1. Open Visual Studio and select File ? Clone Repository (or from the Git menu, choose Clone Repository).
  2. Paste https://github.com/HttpWatch/api_examples into the repository location field and choose a local path.
  3. 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.

Further Information

About

Sample programs that use the HttpWatch API to record, analyze and save network activity in Chrome or Edge

Topics

Resources

License

Stars

Watchers

Forks

Contributors