Creates HAR files from Safari on iOS Simulator
Switch branches/tags
Nothing to show
Pull request Compare This branch is 2 commits behind andydavies:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
.gitignore
README.md
index.js
license.md
package.json

README.md

#ios-har-builder

Loads pages on Safari on iOS Simulator and builds a HTTP Archive (HAR) file for page load.

This is work-in-progress and liable to change

##Install

  1. Clone repository
  2. Run npm install to install dependencies

##Usage

Load the iOS Simulator and launch Safari then

Usage: bin/ios-har-builder [options] URL...

options:
  --output, -o   Dump generated HAR to file instead of stdout
  --verbose, -v  Enable verbose output

N.B. Options for host and port don't currently work

Example:    bin/ios-har-builder -o example.har http://m.guardian.co.uk

##Credits

ios-har-builder is based on a fork of chrome-har-capturer (https://github.com/cyrus-and/chrome-har-capturer) by Andrea Cardaci (cyrus.and@gmail.com)

It's a separate fork for now as there are some differences in behaviour between Chrome and Safari e.g. lack of navigation / resource timing in Safari, Safari wraps the WebKit debug protocol in RPC etc.

##Issues

  • Cookies aren't currently supported
  • Code needs cleaning up and refactoring in several places
  • Host and Port parameters don't work
  • iOS Simulator only (for now)

##Resources