Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 718423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:31:29+00:00 2026-05-14T05:31:29+00:00

I need to get the free Google charts working over SSL without any security

  • 0

I need to get the free Google charts working over SSL without any security errors. I am using c# and asp.net.

As Google charts does not support SSL by default, I am looking for a robust method of using there charts but ensuring my user doesn’t get any security warnings over their browser.

One thought was to use a handler to call the charts api and then generate the output my site needs.

Similar to Pants are optional blog post. I haven’t been able to get this example working at this stage.

Any suggestions, or samples are welcome.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T05:31:30+00:00Added an answer on May 14, 2026 at 5:31 am

    We do this automatically in the NetQuarry Platform – it’s pretty simple, although you do force the image to come through your site vs. charts.google.com, making your browser run the request through a single connection.

    Since a chart is just a link to an image, what we do is to build the link to the chart (a much more complex process, obviously), then add the whole link to the query string on an internal handler (handler.ashx?req=chart& ). So the new link looks like this:

    handler.ashx?act=chrt&req=chart&cht=p3&chs=450×170&chd=s:HAR9GBA&chl=New|In%20Progress|Responded|Won’t%20Respond|On%20Hold|Future|Review|&chg=20,20,1,5&chg=10,25,1,5&chco=0A477D

    Then, we simply download the image data and write it back as the response.

    Here’s the code:

    Blockquote

        private void GoogleChart(HttpContext cxt)
        {            
            const string csPrefix = "?act=chrt&req=chart&";
    
            HttpRequest     req = cxt.Request;
            HttpResponse    rsp = cxt.Response;
            string          sUrl = cxt.Request.RawUrl;
            int             nStart = sUrl.IndexOf(csPrefix,  StringComparison.OrdinalIgnoreCase);
    
            rsp.Clear();
    
            if (nStart > 0)
            {
                sUrl = "http://chart.apis.google.com/chart?" + sUrl.Substring(nStart + csPrefix.Length);
    
                System.Net.WebClient    wc = new System.Net.WebClient();
    
                byte[] buffer = wc.DownloadData(sUrl);
    
                cxt.Response.ClearContent();
                cxt.Response.ClearHeaders();
                cxt.Response.ContentType = "application/octet-stream";
                cxt.Response.AppendHeader("content-length", buffer.Length.ToString());              
    
                cxt.Response.BinaryWrite(buffer);
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to get the free space of a Network drive, without map drive
i need a free control for my asp.net pages which would display pdf documents,so
I need to get the free disk space, total disk space in windows machine
I need to get the name of the unit (namespace) of any TRttiType .
I need get the id of an images which is place inside a datatemplate..
Just need get some vals located in application.ini(main ini) in the Controller plugin I
I need get all items these have no categories int? categoryId = null; var
I have linq request. I need get item.Title in select. how do this? var
I have two tables with a weak relation. I need get a text value
Need to get the 10 word before and 10 words after for the given

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.