Skip to content

Are URL hooks supposed to support access to php://input when the request is sent as application/x-www-form-urlencoded? #2149

@adrianbj

Description

@adrianbj

Hi @ryancramerdesign - sorry, not sure if this is a bug, intentional, or unavoidable.

I send application/json and application/x-www-form-urlencoded payloads to an endpoint created with a URL hook and file_get_contents('php://input') works as expected with application/json, but not with application/x-www-form-urlencoded.

Is there a way that application/x-www-form-urlencoded data could be made available via $event? Or populated to $_POST?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions