bcantoni / echotest

A simple "echo" webservice for testing

Home Page:http://scooterlabs.com/echo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Echoing request body?

nikitaeverywhere opened this issue · comments

Hello! Thanks for a great tool.

In a sample request the body was not echoed:

Simple webservice echo test: make a request to this endpoint to return the HTTP request parameters and headers. Results available in plain text, JSON, or XML formats. See http://www.cantoni.org/2012/01/08/simple-webservice-echo-test for more details, or https://github.com/bcantoni/echotest for source code.

Array
(
    [method] => POST
    [headers] => Array
        (
            [Connection] => close
            [X-Forwarded-Host] => scooterlabs.com
            [X-Forwarded-For] => ::1
            [Sec-Fetch-Site] => same-site
            [Sec-Fetch-Mode] => cors
            [Sec-Fetch-Dest] => empty
            [Postman-Token] => 616b3fc8-a752-4b2c-9a78-2e2ee0f16742
            [Content-Type] => application/json
            [Access-Control-Request-Method] => GET
            [Access-Control-Request-Headers] => dutoken
            [Accept-Encoding] => gzip, deflate, br
            [Accept] => */*
            [Content-Length] => 41
            [User-Agent] => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36
            [Host] => scooterlabs.com
        )

    [request] => Array
        (
        )

    [client_ip] => ::1
    [time_utc] => 2020-09-19T15:20:21+0000
    [info] => Echo service from Scooterlabs (http://www.scooterlabs.com)
)

Is it intentional?

It would be nice to see at least the body size echoed. Thanks!