You just have to supply the content via the URL (up to 2048 characters)
Here is how it works:
If the content cannot be effectively compressed, omit the compression step and use the URL
There is a shorter URL for compressed HTML content that enables you to use 9 more characters:
This idea is not new and has been implemented in the Data URI scheme supported by most browsers. The Data URI scheme is handled completely within the browser and does not need a server but it does not support compression and cannot be indexed by search engines.
Here is a Python-script that will generate the data: and the 6b8.de URI for a file.
Shakespeare's Hamlet, stored via bit.ly
What would be extremely cool: A compressed URL generating a page that links to itself. I do not know if that is possible. Examples of compressed files that decompress to themselves exist.
If the traffic or abuse level of this service gets to high, I will have to rethink the whole idea.
Would life be fun without limits? :-)
This server can handle URLs with up to 32751 characters but the Sitemap protocol has a maximum URL length of 2048 which indicates that search engines do not support more.
The combination of data URIs and URL-shorteners allows the use of URL-shorteners as data stores. This may be one of the reasons that some of them deliberately block shortening of data URIs. 6b8.de-URLs can be shortened, though.
Also, the limit lowers the probability that some day, I will have to explain to law enforcement that we do not actually host any content.
I guess so. You can see such links as ultimate endorsement of the content. The Data URI scheme makes this even more clear by removing the need for a service handling the decoding.