Giter Club home page Giter Club logo

nginx-echo-headers's Introduction

nginx-echo-headers

A simple tool for debugging HTTP requests. nginx will return all request headers and body to the client.

For the Docker image, see https://hub.docker.com/r/brndnmtthws/nginx-echo-headers/

Try running it like so:

$ docker run -p 8080:8080 brndnmtthws/nginx-echo-headers
Unable to find image 'brndnmtthws/nginx-echo-headers:latest' locally
latest: Pulling from brndnmtthws/nginx-echo-headers
88286f41530e: Pull complete
7c2e0e2a8099: Pull complete
fe86df227e07: Pull complete
Digest: sha256:177eccf79ee22074a9285341ea61e0a7864023a0a40b115a693256984821328f
Status: Downloaded newer image for brndnmtthws/nginx-echo-headers:latest
2019/01/24 13:55:52 [notice] 1#1: using the "epoll" event method
2019/01/24 13:55:52 [notice] 1#1: openresty/1.11.2.5
2019/01/24 13:55:52 [notice] 1#1: built by gcc 6.3.0 (Alpine 6.3.0)
2019/01/24 13:55:52 [notice] 1#1: OS: Linux 4.9.125-linuxkit
2019/01/24 13:55:52 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2019/01/24 13:55:52 [notice] 1#1: start worker processes
2019/01/24 13:55:52 [notice] 1#1: start worker process 7
2019/01/24 13:56:02 [info] 7#7: *1 client 172.17.0.1 closed keepalive connection

Then test it (this example uses httpie):

$ http localhost:8080
HTTP/1.1 200 OK
Connection: keep-alive
Content-Type: text/plain
Date: Thu, 24 Jan 2019 13:56:02 GMT
Server: openresty/1.11.2.5
Transfer-Encoding: chunked

GET / HTTP/1.1
Host: localhost:8080
User-Agent: HTTPie/1.0.2
Accept-Encoding: gzip, deflate
Accept: */*
Connection: keep-alive

nginx-echo-headers's People

Contributors

brndnmtthws avatar joepweijers avatar sberlin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.