Sign inSign up

opera443399/whoami

By opera443399

•Updated about 9 years ago

show `http request headers` and `hostname`

Image
1

1.2K

opera443399/whoami repository overview

⁠howto

print http request headers and hostname for testing purposes only.

    ```sh
    #build
    $ git clone https://github.com/opera443399/whoamI.git
    $ cd whoamI/
    $ ./build.sh


    #run
    $ docker run --restart=unless-stopped -d -p 8888:80 opera443399/whoami


    #test
    $ curl "http://127.0.0.1:8888"
    Hostname: 5f27d36cf571

    ---- Http Request Headers ----

    GET / HTTP/1.1
    Host: 127.0.0.1:8888
    User-Agent: curl/7.29.0
    Accept: */*


    ---- Active Endpoint ----

    [howto] version: 0.9
        curl 127.0.0.1/ 
        curl 127.0.0.1/?wait=2s 
        curl 127.0.0.1/test 
        curl 127.0.0.1/api 
        curl 127.0.0.1/health 
        curl 127.0.0.1/health -d '302'
     


    ```
⁠git

https://github.com/opera443399/whoamI⁠

⁠fork from

https://github.com/emilevauge/whoamI⁠

Tag summary

Content type

Image

Digest

Size

1.5 MB

Last updated

about 9 years ago

docker pull opera443399/whoami