Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fixed httpVersion field for responses

previously, only fixed for requests.
latest commit b13c49ee91
Andrew Fleenor authored
..
Failed to load latest commit information.
README.txt Correctly handle requests with no response.
empty.pcap Add semi-automated test system
empty.pcap.har Add semi-automated test system
fhs.pcap Add semi-automated test system
fhs.pcap.dropped.har Fixed httpVersion field for responses
fhs.pcap.har Fixed httpVersion field for responses
fhs_ncomp.pcap Add semi-automated test system
fhs_ncomp.pcap.har Fixed httpVersion field for responses
github.pcap Add semi-automated test system
github.pcap.har Fixed httpVersion field for responses
http.pcap Add semi-automated test system
http.pcap.har Fixed httpVersion field for responses
http.pcap2.har Add semi-automated test system
missing_response.pcap Correctly handle requests with no response.
missing_response.pcap.har Fixed httpVersion field for responses
out-of-order.pcap Add semi-automated test system
out-of-order.pcap.har Fixed httpVersion field for responses
pcapr.net.pcap Add semi-automated test system
pcapr.net.pcap.har Fixed httpVersion field for responses
request_only.pcap Correctly handle requests with no response.
request_only.pcap.har Merge remote branch 'origin/master'
run_tests.sh Correctly handle requests with no response.
sajal.pcap Add semi-automated test system
sajal.pcap.har Fixed httpVersion field for responses

README.txt

What we have in this director is a set of pcaps to be used as tests for
pcap2har. Many of them exhibited specific previous bugs in pcap2har.
Also included are HAR's that are expected from the pcaps. They thus 
serve as a primitive regression test suite.

To run the tests, just run the bash script run_tests.sh. This iterates
through all the pcaps in the directory, runs pcap2har on them, and diffs
the output with saved hars to check for errors. If either pcap2har or the diff
fails, the log is saved and the script continues to check files.

Here is a list of pcaps, their properties, and where they came from.

http.pcap
Previously http.cap. A simple http pageload. It has some awkward feature
I forgot.

fhs.pcap
A complete pageload of andrewfleenor.users.sourceforge.net/fhs/fhs.xml.
Streams are gzip compressed.

fhs_ncomp.pcap
Above, but not compressed.

empty.pcap
Empty file. dpkt doesn't like it, but we have to handle it.

out-of-order.pcap
From from Dekel Amrani. A big pcap, with out-of-order starting packet on
incoming stream of tcp port 59743.

github.pcap
A pageload of github.

pcapr.net.pcap
A pageload of pcapr.net, an online pcap repository. Includes a redirect
from pcapr.net to pcapr.net/home

missing_response.pcap:
A flow from fhs.pcap with one of the responses missing, to test -k functionality

request_only.pcap:
Flow with a request and nothing else, to handle a different failure case of -k

Something went wrong with that request. Please try again.