Search code examples
phpurlgetarraystransmission

byte array over $_GET request feasibility?


I hope this will be a relatively quick question.

If i send a byte array via the URL and retrieve it from a $_GET request in PHP server side scripts will the url be capable of transmitting the byte array? Is a URL capable of being long enough for this purpose? or do i need another way to transmit the byte array?

example of what im attempting: http://www.website.com/scrypt.php?image="bytearray"

better yet is there a best practices for transmitting this data from say an Android app to php?


Solution

  • As long as it doesn't exceed the limit for a URL or contain reserved characters that would be interpreted by the CGI...you're all set. Go for it.