Development Setup

Setting up

Start with getting the source code from github.

$ git clone git://
$ cd liveweb

Setup a virtualenv.

$ make venv

This will create the virtualenv in the current directory. Edit the Makefile if you want to setup virtualenv elsewhere.

Running the application

Run the application using:

$ make run

This will start the liveweb proxy at localhost:7070.

Testing using curl

Assuming the liveweb proxy is running on localhost:7070:

$ curl -s -x localhost:7070 | zcat 20120427110218 application/json 451
HTTP/1.1 200 OK
Content-Type: application/json
Date: Fri, 27 Apr 2012 11:02:18 GMT
Server: gunicorn/0.13.4
Content-Length: 298
Connection: Close

  "url": "",
  "headers": {
    "Content-Length": "",
    "Accept-Encoding": "identity",
    "Connection": "keep-alive",
    "User-Agent": "ia_archiver(OS-Wayback)",
    "Host": "",
    "Content-Type": ""
  "args": {},
  "origin": ""

Running in http-passthough mode

Enable http-passthrough mode by adding the following to the config file.

http_passthough: true

Make sure caching is disabled. The http-passthough mode doesn’t work with caching.

Run the application and change the browser setting to use application address (localhost:7070 by default) as http proxy.

Performance Testing

Test performance using Apache-Bench:

$ ab -X localhost:7070 -c 10 -n 100

The -X options is to specify the proxy server.

Project Versions

Table Of Contents

Previous topic

Liveweb Proxy

Next topic

Liveweb Proxy Configuration

This Page