|
4 | 4 | * Cookie store: |
5 | 5 | * |
6 | 6 | * Request: |
7 | | -* GET http://localhost:8000/secret |
| 7 | +* GET http://localhost:8000/secret?q=*** |
8 | 8 | * x-secret: *** |
9 | | -* x-secret: BarBar |
| 9 | +* x-secret: *** |
| 10 | +* x-secret: Secret2 |
| 11 | +* [Cookies] |
| 12 | +* X-SECRET=*** |
10 | 13 | * |
11 | 14 | * Request can be run with the following curl command: |
12 | | -* curl --request GET --header 'x-secret: ***' --header 'x-secret: BarBar' --header 'Content-Type: application/json' --data $'{\n "query": "***"\n}' 'http://localhost:8000/secret' |
| 15 | +* curl --request GET --header 'x-secret: ***' --header 'x-secret: ***' --header 'x-secret: Secret2' --header 'Content-Type: application/json' --data $'{\n "query": "***"\n}' --cookie 'X-SECRET=***' 'http://localhost:8000/secret?q=***' |
13 | 16 | * |
14 | 17 | ** Host localhost:8000 was resolved. |
15 | 18 | ** IPv6: ::1 |
16 | 19 | ** IPv4: 127.0.0.1 |
17 | 20 | ** Trying [::1]:8000... |
18 | | -** connect to ::1 port 8000 from ::1 port 55184 failed: Connection refused |
| 21 | +** connect to ::1 port 8000 from ::1 port 62530 failed: Connection refused |
19 | 22 | ** Trying 127.0.0.1:8000... |
20 | 23 | ** Connected to localhost (127.0.0.1) port 8000 |
21 | | -> GET /secret HTTP/1.1 |
| 24 | +> GET /secret?q=*** HTTP/1.1 |
22 | 25 | > Host: localhost:8000 |
23 | 26 | > Accept: */* |
| 27 | +> Cookie: X-SECRET=*** |
| 28 | +> x-secret: *** |
24 | 29 | > x-secret: *** |
25 | | -> x-secret: BarBar |
| 30 | +> x-secret: Secret2 |
26 | 31 | > Content-Type: application/json |
27 | 32 | > User-Agent: hurl/<<<.*?>>> |
28 | | -> Content-Length: 26 |
| 33 | +> Content-Length: 24 |
29 | 34 | > |
30 | 35 | * Request body: |
31 | 36 | * { |
32 | 37 | * "query": "***" |
33 | 38 | * } |
34 | | -** upload completely sent off: 26 bytes |
| 39 | +** upload completely sent off: 24 bytes |
| 40 | +** Added cookie value="***" for domain localhost, path /, expire 0 |
35 | 41 | ** Closing connection |
36 | | -* Response: (received 16 bytes in <<<\d+>>> ms) |
| 42 | +* Response: (received 20 bytes in <<<\d+>>> ms) |
37 | 43 | * |
38 | 44 | < HTTP/1.1 200 OK |
39 | 45 | < Server: Werkzeug/<<<.*?>>> Python/<<<.*?>>> |
40 | 46 | < Date: <<<.*?>>> |
41 | 47 | < Content-Type: application/json |
42 | | -< Content-Length: 16 |
| 48 | +< Content-Length: 20 |
| 49 | +< Set-Cookie: value=***; Path=/ |
43 | 50 | < Server: Flask Server |
44 | 51 | < Connection: close |
45 | 52 | < |
|
56 | 63 | * pre_transfer: <<<\d+>>> µs |
57 | 64 | * start_transfer: <<<\d+>>> µs |
58 | 65 | * total: <<<\d+>>> µs |
| 66 | +* Captures: |
| 67 | +* value: *** |
59 | 68 | * |
| 69 | +* Writing HTML report to build/secret |
0 commit comments