Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if request.method == 'GET':
- payload = {
- "sessId": request.GET['sessId'],
- "userName": request.GET['userName'],
- "sessionLifetime": SESSION_TIMEOUT,
- "idleTimeout": IDLE_TIMEOUT,
- }
- if request.method == 'POST':
- logic with the payload
- requests.post(url,payload)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement