Skip to content

Error trying to decode a HTTP request #119

@LBreda

Description

@LBreda

Hi,

I'm trying to decode data from a HTTP request (file_get_contents(filename: 'php://input', length: $httpRequest->header('Content-Length'))). I'm making the requests from the dog client.

The error I always receive is "Unable to decode OPT record rdata from binary data" followed by the data. The request should'nt contain OPT records.

For example, if I try to query the system for the classic a.62characterlabel-makes-base64url-distinct-from-standard-base64.example.com. I received as the HTTP body the data (I translated it in base64):

/NYBAAABAAAAAAABAWE+NjJjaGFyYWN0ZXJsYWJlbC1tYWtlcy1iYXNlNjR1cmwtZGlzdGluY3QtZnJvbS1zdGFuZGFyZC1iYXNlNjQHZXhhbXBsZQNjb20AAAEAAQAAKQIAAAAAAAAA

which gives me the error.

Since the string:

/NYBAAABAAAAAAABAWE+NjJjaGFyYWN0ZXJsYWJlbC1tYWtlcy1iYXNlNjR1cmwtZGlzdGluY3QtZnJvbS1zdGFuZGFyZC1iYXNlNjQHZXhhbXBsZQNjb20AAAEAAQ

should be enough, the client probably adds something that the decoder is not reading correctly (or I most probably am missing something major).

Do you have any idea on how to fix it?

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