I can confirm that the mod_proxy approach will work just fine.
As an alternative if you don't have the ability to install Apache
modules (i.e. in a hosted environment),
you can also get away with a simple passthrough PHP script like the
following. It does no error checking at all.
chart.php:
<?php
header("Content-type: image/png");
$fp = fopen("http://chart.apis.google.com/chart?{$_SERVER
["QUERY_STRING"]}", "rb");
fpassthru($fp);
fclose($fp);
?>
With that you, can use URL's like https://myserver.com/chart.php?xxxxxxx
daniel
On Jan 26, 1:28 pm, Bas van Westing <[email protected]> wrote:
> Hi,
>
> I have the same problem. I didn't think this through yet, but would
> using Apache mod_proxy be a solution for this? Just create a secure
> url on your server (or a path within your app) and forward the request
> to google from your server. This way the browser thinks it talking
> securely to your own server and you don't need to do any local storing
> of the files.
>
> I'll try this out when I have some time the coming days. I'll update
> this thread with the results.
>
> Regards, Bas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Chart API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-chart-api?hl=en
-~----------~----~----~----~------~----~------~--~---