Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A convertor from .pcap network capture files to HTTP Archive files.

branch: http_refactor

This branch is 0 commits ahead and 112 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 http
Octocat-spinner-32 tcp
Octocat-spinner-32 BeautifulSoup.py
Octocat-spinner-32 README
Octocat-spinner-32 fhs.pcap
Octocat-spinner-32 fhs_ncomp.pcap
Octocat-spinner-32 har.py
Octocat-spinner-32 http.cap
Octocat-spinner-32 httpsession.py
Octocat-spinner-32 main.py
Octocat-spinner-32 mediatype.py
Octocat-spinner-32 orderedset.py
Octocat-spinner-32 pcap.py
Octocat-spinner-32 pcap2har.psproj
Octocat-spinner-32 pcaputil.py
Octocat-spinner-32 pyper.py
Octocat-spinner-32 sortedcollection.py
Octocat-spinner-32 tcpseq.py
Octocat-spinner-32 test.py
README
pcap2har: converts .pcap network capture files to HTTP Archive files.

The HAR format is still not completely supported, but the main parts are there
and features are being added.

To run the program, run main.py with two arguments: the name of the capture
file, and the HAR output filename. For example:

./main.py my.pcap my_pcap.har

The HTTP Archive (HAR) file format specification is here:
http://groups.google.com/group/http-archive-specification/web/har-1-1-spec?hl=en
It is a fairly straightforward JSON format.

pcap2har includes BeautifulSoup.py, by Leonard Richardson. It only uses the
class UnicodeDammit, for unicode encoding detection. Its capabilities will be
improved if the chardet library is also available. It can be gotten from here:
http://chardet.feedparser.org/

pcap2har is written in Python, and depends on the dpkt packet-parsing library
(http://code.google.com/p/dpkt/).
Something went wrong with that request. Please try again.