in reply to Can not save perl GD graph as png on browser
When I use "save Image as" link on the Mozilla firefox, it saves the HTML for form instead of png code. (...)
if ( !$cgi->param ) { ### The form goes here } else {
What does the form look like? Maybe the problem is you're using POST to send the parameters, so the URL associated with the image doesn't hold the paramaters, in which case I suppose the browser won't resend them when you "Save Image As...", which in turn means the CGI will send out the initial form again... (I'm presuming the browser will try to reload the image from the server, and not read it locally from cache, as dynamically generated content by default isn't cached.)
A couple of speculations... but anyhow, I would try GET instead.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can not save perl GD graph as png on browser
by rakheek (Sexton) on Apr 14, 2010 at 21:26 UTC | |
|
Re^2: Can not save perl GD graph as png on browser
by rakheek (Sexton) on Apr 14, 2010 at 20:42 UTC |