commit 93027244eeb36060fc4482073ad1ae0b676f5acd Author: Arturo Filastò arturo@filasto.net Date: Fri Jan 16 17:53:52 2015 +0100
Fix markup of example --- test-specs/ts-006-header-field-manipulation.md | 226 +----------------------- 1 file changed, 3 insertions(+), 223 deletions(-)
diff --git a/test-specs/ts-006-header-field-manipulation.md b/test-specs/ts-006-header-field-manipulation.md index e04d66b..8a121ff 100644 --- a/test-specs/ts-006-header-field-manipulation.md +++ b/test-specs/ts-006-header-field-manipulation.md @@ -118,6 +118,8 @@ headers not present in both the sent and received headers.
## Example output sample
+ +``` ########################################### # OONI Probe Report for http_header_field_manipulation (0.1.3) # Wed Oct 9 10:57:42 2013 @@ -141,185 +143,6 @@ headers not present in both the sent and received headers. - request: body: null headers: - - - ACCePT-LAnGuagE - - ['en-US,en;q=0.8'] - - - aCCEPT-ENcODInG - - ['gzip,deflate,sdch'] - - - aCcEPT - - ['text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'] - - - User-AGeNt - - ['Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20091221 - Firefox/3.5.7'] - - - aCCEpt-cHArSEt - - ['ISO-8859-1,utf-8;q=0.7,*;q=0.3'] - - - HOsT - - [KIXnnZDJfGKRNab.com] - method: GET - url: http://12.34.56.78 - response: - body: '{"headers_dict": {"ACCePT-LAnGuagE": ["en-US,en;q=0.8"], "aCCEPT-ENcODInG": - ["gzip,deflate,sdch"], "HOsT": ["KIXnnZDJfGKRNab.com"], "aCcEPT": ["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"], - "User-AGeNt": ["Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) - Gecko/20091221 Firefox/3.5.7"], "aCCEpt-cHArSEt": ["ISO-8859-1,utf-8;q=0.7,*;q=0.3"], - "Connection": ["close"]}, "request_line": "GET / HTTP/1.1", "request_headers": - [["Connection", "close"], ["ACCePT-LAnGuagE", "en-US,en;q=0.8"], ["aCCEPT-ENcODInG", - "gzip,deflate,sdch"], ["aCcEPT", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"], - ["User-AGeNt", "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) - Gecko/20091221 Firefox/3.5.7"], ["aCCEpt-cHArSEt", "ISO-8859-1,utf-8;q=0.7,*;q=0.3"], - ["HOsT", "KIXnnZDJfGKRNab.com"]]}' - code: 200 - headers: [] - socksproxy: null - tampering: - header_field_name: false - header_field_number: false - header_field_value: false - header_name_capitalization: false - header_name_diff: [] - request_line_capitalization: false - total: false - ... - --- - agent: agent - input: null - requests: - - request: - body: null - headers: - - - accePt-LAnguAGE - - ['en-US,en;q=0.8'] - - - AcCEpT-eNCOdinG - - ['gzip,deflate,sdch'] - - - accept - - ['text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'] - - - UseR-aGENt - - ['Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2) Gecko/20100115 Firefox/3.6'] - - - aCcEPT-cHARSeT - - ['ISO-8859-1,utf-8;q=0.7,*;q=0.3'] - - - HoSt - - [AjzqKfZkMpoRf8r.com] - method: POst - url: http://12.34.56.78 - response: - body: '{"headers_dict": {"accePt-LAnguAGE": ["en-US,en;q=0.8"], "AcCEpT-eNCOdinG": - ["gzip,deflate,sdch"], "HoSt": ["AjzqKfZkMpoRf8r.com"], "accept": ["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"], - "UseR-aGENt": ["Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2) Gecko/20100115 - Firefox/3.6"], "aCcEPT-cHARSeT": ["ISO-8859-1,utf-8;q=0.7,*;q=0.3"], "Connection": - ["close"]}, "request_line": "POst / HTTP/1.1", "request_headers": [["Connection", - "close"], ["accePt-LAnguAGE", "en-US,en;q=0.8"], ["AcCEpT-eNCOdinG", "gzip,deflate,sdch"], - ["accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"], - ["UseR-aGENt", "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2) Gecko/20100115 - Firefox/3.6"], ["aCcEPT-cHARSeT", "ISO-8859-1,utf-8;q=0.7,*;q=0.3"], ["HoSt", - "AjzqKfZkMpoRf8r.com"]]}' - code: 200 - headers: [] - socksproxy: null - tampering: - header_field_name: false - header_field_number: false - header_field_value: false - header_name_capitalization: false - header_name_diff: [] - request_line_capitalization: false - total: false - ... - --- - agent: agent - input: null - requests: - - request: - body: null - headers: - - - Accept-Language - - ['en-US,en;q=0.8'] - - - Accept-Encoding - - ['gzip,deflate,sdch'] - - - Accept - - ['text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'] - - - User-Agent - - ['Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 - Firefox/3.6'] - - - Accept-Charset - - ['ISO-8859-1,utf-8;q=0.7,*;q=0.3'] - - - Host - - [NViZZh58LWHFnyp.com] - method: PUT - url: http://12.34.56.78 - response: - body: '{"headers_dict": {"Accept-Language": ["en-US,en;q=0.8"], "Accept-Encoding": - ["gzip,deflate,sdch"], "Host": ["NViZZh58LWHFnyp.com"], "Accept": ["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"], - "User-Agent": ["Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 - Firefox/3.6"], "Accept-Charset": ["ISO-8859-1,utf-8;q=0.7,*;q=0.3"], "Connection": - ["close"]}, "request_line": "PUT / HTTP/1.1", "request_headers": [["Connection", - "close"], ["Accept-Language", "en-US,en;q=0.8"], ["Accept-Encoding", "gzip,deflate,sdch"], - ["Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"], - ["User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 - Firefox/3.6"], ["Accept-Charset", "ISO-8859-1,utf-8;q=0.7,*;q=0.3"], ["Host", - "NViZZh58LWHFnyp.com"]]}' - code: 200 - headers: [] - socksproxy: null - tampering: - header_field_name: false - header_field_number: false - header_field_value: false - header_name_capitalization: false - header_name_diff: [] - request_line_capitalization: false - total: false - ... - --- - agent: agent - input: null - requests: - - request: - body: null - headers: - - - AccepT-langUaGe - - ['en-US,en;q=0.8'] - - - aCcePT-ENcoDing - - ['gzip,deflate,sdch'] - - - ACCEpT - - ['text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'] - - - uSER-agent - - ['Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.7) Gecko/20091221 - Firefox/3.5.7 (.NET CLR 3.5.30729)'] - - - aCCept-CHaRSEt - - ['ISO-8859-1,utf-8;q=0.7,*;q=0.3'] - - - HoSt - - [48wD518oXAV1pzv.com] - method: pUT - url: http://12.34.56.78 - response: - body: '{"headers_dict": {"AccepT-langUaGe": ["en-US,en;q=0.8"], "aCcePT-ENcoDing": - ["gzip,deflate,sdch"], "HoSt": ["48wD518oXAV1pzv.com"], "ACCEpT": ["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"], - "uSER-agent": ["Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.7) Gecko/20091221 - Firefox/3.5.7 (.NET CLR 3.5.30729)"], "aCCept-CHaRSEt": ["ISO-8859-1,utf-8;q=0.7,*;q=0.3"], - "Connection": ["close"]}, "request_line": "pUT / HTTP/1.1", "request_headers": - [["Connection", "close"], ["AccepT-langUaGe", "en-US,en;q=0.8"], ["aCcePT-ENcoDing", - "gzip,deflate,sdch"], ["ACCEpT", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"], - ["uSER-agent", "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.7) Gecko/20091221 - Firefox/3.5.7 (.NET CLR 3.5.30729)"], ["aCCept-CHaRSEt", "ISO-8859-1,utf-8;q=0.7,*;q=0.3"], - ["HoSt", "48wD518oXAV1pzv.com"]]}' - code: 200 - headers: [] - socksproxy: null - tampering: - header_field_name: false - header_field_number: false - header_field_value: false - header_name_capitalization: false - header_name_diff: [] - request_line_capitalization: false - total: false - ... - --- - agent: agent - input: null - requests: - - request: - body: null - headers: - - accEpt-LANGuAGE - ['en-US,en;q=0.8'] - - aCcepT-ENCoDIng @@ -358,50 +181,7 @@ headers not present in both the sent and received headers. request_line_capitalization: false total: false ... - --- - agent: agent - input: null - requests: - - request: - body: null - headers: - - - Accept-Language - - ['en-US,en;q=0.8'] - - - Accept-Encoding - - ['gzip,deflate,sdch'] - - - Accept - - ['text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'] - - - User-Agent - - ['Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2) Gecko/20100115 Firefox/3.6'] - - - Accept-Charset - - ['ISO-8859-1,utf-8;q=0.7,*;q=0.3'] - - - Host - - [iIjXcFcLGv8WHMk.com] - method: POST - url: http://12.34.56.78 - response: - body: '{"headers_dict": {"Accept-Language": ["en-US,en;q=0.8"], "Accept-Encoding": - ["gzip,deflate,sdch"], "Host": ["iIjXcFcLGv8WHMk.com"], "Accept": ["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"], - "User-Agent": ["Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2) Gecko/20100115 - Firefox/3.6"], "Accept-Charset": ["ISO-8859-1,utf-8;q=0.7,*;q=0.3"], "Connection": - ["close"]}, "request_line": "POST / HTTP/1.1", "request_headers": [["Connection", - "close"], ["Accept-Language", "en-US,en;q=0.8"], ["Accept-Encoding", "gzip,deflate,sdch"], - ["Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"], - ["User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2) Gecko/20100115 - Firefox/3.6"], ["Accept-Charset", "ISO-8859-1,utf-8;q=0.7,*;q=0.3"], ["Host", - "iIjXcFcLGv8WHMk.com"]]}' - code: 200 - headers: [] - socksproxy: null - tampering: - header_field_name: false - header_field_number: false - header_field_value: false - header_name_capitalization: false - header_name_diff: [] - request_line_capitalization: false - total: false - ... +```
# Privacy considerations