Hey!
I've followed the tutorial:
http://code.google.com/intl/sl/apis/chart/image/docs/post_requests.html
section Using PHP for a POST Request. It didn't work for me untill I
added header when querying Google chart API. The problem was that I
get a php notice saying it is missing content type. When I added the
header all was fine:
array('http' => array(
'method' => 'POST',
'header' => "Content-Type: application/x-www-form-urlencoded\r
\n", //this line added
'content' => http_build_query($chart))));
fpassthru(fopen($url, 'r', false, $context));
Would be nice if that would be changed in the example tutorial.
--
You received this message because you are subscribed to the Google Groups
"Google Visualization 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-visualization-api?hl=en.