I want to post some binary data to PHP.
I know that I can use php://input or $HTTP_RAW_POST_DATA to read it.
But it only can post one binary data.
I want to post two key-value data which respective value is in binary.
How can we do this in PHP?
I want to post some binary data to PHP. I know that I can
Share
You can encode your binary data in Base64 using
base64_encode()andbase64_decode().For example, you can post:
And in your PHP: