Skip to content

Echoing request body? #2

@nikitaeverywhere

Description

@nikitaeverywhere

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions