-
Notifications
You must be signed in to change notification settings - Fork 41
Description
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?