ppierre / simple-request-forwarding-app-engine

A simple application for forwarding request using Google App Engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request forwarding on Google App Engine

A simple application for forwarding request :

  • Change HTTP method
  • Set default parameters
  • Filter request parameters
  • Hide your secret :
    • Cloak forwarding URL
    • Choose request URL (long and/or cryptic)
    • Add HTTP basic authentication
    • Add additional parameters

Disclaimer : Not really tested, nor finished :(. I wrote this for a simple need : bypass a missing User-Agent and hide some password.

Installation

You need Google App Engine SDK

  • And read documentation

  • Clone this repository

  • copy app-sample.yaml to app_engine/app.yaml

    • edit app_engine/app.yaml and change application id
  • copy config-sample.yaml to app_engine/config.yaml

    • edit app_engine/config.yaml (see Configuration)
  • copy config-test-local.yaml to app_engine/config-test-local.yaml

    • edit app_engine/config-test-local.yaml (see Configuration)

Configuration

see content in app_engine/config-sample.yaml

Need some documentation

app_engine/config-test-local.yaml is for local testing (with SDK). It will be merged with app_engine/config.yaml .

URL re-defined in app_engine/config-test-local.yaml will take over app_engine/config.yaml . It won't be used on deployed application.

Usage

Test

# Go to application directory and launch it with :
dev_appserver.py app_engine

Deployment

# After testing it, deploy on Google App Engine
appcfg.py update app_engine

See : Uploading Your Application

Far future :

  • Documentation
  • Unit test
  • Parameters transformation
    • XSLT ?
    • JSONT ?
    • other ...

About

A simple application for forwarding request using Google App Engine


Languages

Language:Python 100.0%