I have written a CGI script that creates an image dynamically using GET data. To include this image in my webpage, I am using the following code:
<img src='image.py?text=xxxxxxxxxxxxxx'>
The problem is that I expect in the future the ‘text’ field will get very long and the URL will become too large. From Googling around there doesn’t seem to be a fixed limit on URL length (ie. depends on the browser, server, proxy, etc.) Is there a better way to do this?
If it matters, I am working with Django and Python and I cannot use any client-side scripting (ie. JavaScript).
Cheers, Ben
Store the text somewhere (e.g. a database) and then pass through the primary key.