~nhanb/gae-proxy

cbed380a3759a685c7652cb83fce4e88f18d9dbe — Bùi Thành Nhân 2 years ago b809beb
update send script to have password
1 files changed, 7 insertions(+), 0 deletions(-)

M send.py
M send.py => send.py +7 -0
@@ 1,9 1,15 @@
import os

import requests

"""
Lazy quick test script
"""

PASSWORD = os.environ.get("GAEPROXY_PASSWORD", "foo")
print(PASSWORD)


resp = requests.post(
    "https://nhansproxy.df.r.appspot.com/proxy",
    json={


@@ 11,6 17,7 @@ resp = requests.post(
        "method": "get",
        "body": None,
        "headers": {"Foo-Bar": "ehhhh"},
        "password": PASSWORD,
    },
)