Reputation: 763
I am trying for a way to pass binary data to a server over http, via the URL field in the browser. Is there a way to bypass the automatic http encoding done by the browser so I can just encode the data by myself.
e.g.: Instead of the byte with value 48, to fill in the URL %30 so that the browser doesn't re-encode the url and I end up with %2530
Solved: To whom may encounter similar problems in the future. You can do so by using wget parameter
--restrict-file-name=ascii
Which basically ensures that '%' won't be escaped
Upvotes: 2
Views: 6284
Reputation: 4889
Use the base62 encoding.
The encoded string doesn't contain any character that will be URL-encoded.
Upvotes: 0
Reputation: 763
I managed to do so, by writing my own tcp client to connect to the http server and transmit the request, by inputting it manually.
Upvotes: 0