Apache Lounge



Forum Index Downloads Search Register Log in  RSS Apache Lounge

Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.



A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.

Google APIs: HTTP request via localhost fails

Post new topic   Reply to topic    Apache Forum Index -> Coding & Scripting Corner

View previous topic :: View next topic  
Author Message

Joined: 27 Aug 2013
Posts: 8
Location: South Africa, Johannesburg

PostPosted: Tue 20 May '14 20:43    Post subject: Google APIs: HTTP request via localhost fails Reply with quote

I am attempting to access the Google APIs website using the 'simple-query' from the PHP examples on GitHub.

The 'simple-query' can be run without an identification key. It also doesn't require a call-back function.

When I access the site manually (by typing the URL "https://www.googleapis.com/books/v1/volumes?q=Henry David Thoreau&filter=free-ebooks" in the address bar I receive the correct results.

However, when I run a known-working code sample (written in PHP) via localhost / the result is an HTTP 500 error.

Since this sounds like a configuration problem I have posted the query in this forum. That said, please feel free to transfer the query to any other forum which may be more appropriate.

Technical stuff: Windows 7 / Apache 2.4.9 / PHP 5.5.11
Back to top
James Blond

Joined: 19 Jan 2006
Posts: 6414
Location: Germany, Next to Hamburg

PostPosted: Mon 26 May '14 10:53    Post subject: Reply with quote

set your php error reporting to E_ALL and enable the php error logging to file and see which error happens.
Back to top

Post new topic   Reply to topic    Apache Forum Index -> Coding & Scripting Corner
Page 1 of 1