Opened 7 years ago

Closed 7 years ago

#7412 closed enhancement (implemented)

First iteration on HTTP test helper

Reported by: hellais Owned by: hellais
Priority: Medium Milestone:
Component: Archived/Ooni Version:
Severity: Keywords: oonib_test_helpers, SponsorH201208
Cc: Actual Points:
Parent ID: #7411 Points:
Reviewer: Sponsor:

Description

Implement basic implementation for HTTP Request test helper that returns to the client all the requests it has received.

Child Tickets

Change History (1)

comment:1 Changed 7 years ago by hellais

Keywords: SponsorH201208 added
Resolution: implemented
Status: newclosed

This has been implemented. It returns a json dict containing the requests that the client has sent to it. Here is an example:

$ curl -kis 127.0.0.1:1234
HTTP/1.1 200 OK
Content-Length: 158
Etag: "8d37f1f5b00e7dafb7d02136b307a45a76074ad2"
Content-Type: text/html; charset=UTF-8
Server: cyclone/1.0-rc13

{"request_method": "GET", "request_uri": "/", "request_body": "", "request_headers": {"Host": "127.0.0.1:1234", "Accept": "*/*", "User-Agent": "curl/7.27.0"}}

Note: See TracTickets for help on using tickets.