logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

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

or

Bitcoin

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

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Coding & Scripting Corner View previous topic :: View next topic
Reply to topic   Topic: Google APIs: HTTP request via localhost fails
Author
RowanH



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 / 127.0.0.1 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
Moderator


Joined: 19 Jan 2006
Posts: 7371
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


Reply to topic   Topic: Google APIs: HTTP request via localhost fails View previous topic :: View next topic
Post new topic   Forum Index -> Coding & Scripting Corner