Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

HTTP Requests & Google App Engine

This sample application demonstrates how to make HTTP Requests with Google App Engine.

Setup

  • Install composer
  • Install dependencies by running:
composer install

Deploy to App Engine

Run Locally

Run the sample with dev_appserver.py:

cd /path/to/php-docs-samples/appengine/standard/http
dev_appserver.py .

Now browse to http://localhost:8080 to view the sample.

Deploy with gcloud

gcloud config set project YOUR_PROJECT_ID
gcloud app deploy
gcloud app browse

The last command will open https://{YOUR_PROJECT_ID}.appspot.com/ in your browser.

Using the App

This app shows you how to make http requests in Google App Engine. To use cURL, modify the php.ini file in the root of this project and uncomment one of the valid cURL extensions. [Read our documentation] to understand the difference between using cURL and cURLite.