|
4 | 4 |
|
5 | 5 | Requires Python >= 3.6
|
6 | 6 |
|
7 |
| -[](https://app.codacy.com/gh/jaswdr/http-dump?utm_source=github.com&utm_medium=referral&utm_content=jaswdr/http-dump&utm_campaign=Badge_Grade) |
| 7 | +[](https://www.codacy.com/gh/jaswdr/http-dump/dashboard?utm_source=github.com&utm_medium=referral&utm_content=jaswdr/http-dump&utm_campaign=Badge_Grade) |
8 | 8 | [](https://gitpod.io/#https://github.com/jaswdr/http-dump)
|
9 | 9 | [](https://hits.seeyoufarm.com)
|
10 | 10 |
|
11 | 11 | ## Getting Started
|
12 | 12 |
|
13 | 13 | ```
|
14 |
| -$ docker run -p 8080:80 ghcr.io/jaswdr/http-dump |
| 14 | +$ docker run -p 8080:80 ghcr.io/jaswdr/http-dump:master |
15 | 15 | * Serving Flask app 'dump' (lazy loading)
|
16 | 16 | * Environment: production
|
17 | 17 | WARNING: This is a development server. Do not use it in a production deployment.
|
18 | 18 | Use a production WSGI server instead.
|
19 | 19 | * Debug mode: on
|
20 | 20 | * Running on all addresses.
|
21 | 21 | WARNING: This is a development server. Do not use it in a production deployment.
|
22 |
| - * Running on http://<your-ip>:80/ (Press CTRL+C to quit) |
| 22 | + * Running on http://10.0.0.1:80/ (Press CTRL+C to quit) |
23 | 23 | * Restarting with stat
|
24 | 24 | * Debugger is active!
|
25 | 25 | * Debugger PIN: 995-808-312
|
26 | 26 | ```
|
27 | 27 |
|
28 |
| -Then http://localhost:8080. |
| 28 | +Then open **http://localhost:8080/?foo=bar&bar=foo** |
| 29 | + |
| 30 | +Example of response: |
| 31 | +``` |
| 32 | +{ |
| 33 | + "uuid": "9b513c673ee840b581b964b0aca3f62c", |
| 34 | + "endpoint": "dump", |
| 35 | + "method": "GET", |
| 36 | + "cookies": { |
| 37 | + "grafana_session": "88deff3280a7bcaab18922192d282442", |
| 38 | + "cookie-name": "cookie-value" |
| 39 | + }, |
| 40 | + "data": "b''", |
| 41 | + "headers": { |
| 42 | + "Host": "10.0.0.1:8080", |
| 43 | + "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:92.0) Gecko/20100101 Firefox/92.0", |
| 44 | + "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", |
| 45 | + "Accept-Language": "en-US,en;q=0.5", |
| 46 | + "Accept-Encoding": "gzip, deflate", |
| 47 | + "Dnt": "1", |
| 48 | + "Connection": "keep-alive", |
| 49 | + "Upgrade-Insecure-Requests": "1" |
| 50 | + }, |
| 51 | + "args": { |
| 52 | + "foo": "bar", |
| 53 | + "bar": "foo" |
| 54 | + }, |
| 55 | + "form": {}, |
| 56 | + "remote_addr": "10.0.0.2", |
| 57 | + "files": [] |
| 58 | +} |
| 59 | +``` |
29 | 60 |
|
30 | 61 | ## Get involved
|
31 | 62 |
|
|
0 commit comments