Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

May a URL contain arbitrary binary data in a GET-request?

May a URL contain raw binary data in a GET-request?

Is it possible to create a URL, www.example.com/**binary-data**, where www.example.com/ are ordinary ASCII characters, and **binary-data** are arbitrary raw byte-values, e.g., 0x10.

I don't won't to encode the binary data, but just create a string, e.g., char* in C, that contains both the ASCII characters and the binary data.

Or is POST-request the only way to send raw binary data as part of the body?

like image 481
Shuzheng Avatar asked Sep 15 '26 22:09

Shuzheng


1 Answers

No, but could percent-escape the non-URI characters.

like image 191
Julian Reschke Avatar answered Sep 17 '26 22:09

Julian Reschke



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!