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

  • Home
  • SEARCH
  • 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 6869081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:30:49+00:00 2026-05-27T03:30:49+00:00

I need to get images from Google Chart, but I’m behind a proxy. With

  • 0

I need to get images from Google Chart, but I’m behind a proxy.

With the code below (changing $url) I can get images from other sites, but not from google:

$url =
‘http://chart.apis.google.com/chart?chs=450×270&chd=t:’.$values_list.’&cht=p&chl=’.$labels_list.’&chco=80AF1B,FFFF8C&chf=bg,s,F8F8F8′;

$img = '../uploads/tx_oriindicadores/triglo.png'; 

file_put_contents($img, t3lib_div::getURL($url));

The code of the getURL() method uses cURL functions to connect and retrieve data.

At this moment I only get an empty file.

Are there some parameters or configuraton that I care in order to get images from google?

Thanks.


The getURL() method is native of TYPO3 and you can see the code in this page:
http://doc-typo3.ameos.com/4.1.0/class_8t3lib__div_8php-source.html Line 2342

I pass the parameters through the backend of the site.

  • 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-27T03:30:50+00:00Added an answer on May 27, 2026 at 3:30 am

    The function above is right, the problem was that in the variable $labels_list there were spaces. So replacing the spaces with %20 solved the problem.

    The spaces in the direct URL request are not a problem, but in cURL there are.

    So as general rule don’t use spaces when work with cURL, use instead %20.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I bring the code from google to correct it fit for my need The
I need to get the domain name from an URL. The following examples should
I need to get Image object from Google Maps, centered to a given address,
I need to get an image from a SQL Server as a byte[], and
I am building a web app where I need to get all the images
I need to get the default printer name. I'll be using C# but I
I can't find this on Google (so maybe it doesn't exist), but I basically'd
I started with Google's sample code for a Grid View but how would I
I need to get images along with other data (very similar to email with
I searched a lot in google but not able to get the answer required.

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.