Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. if request.method == 'GET':
  2. payload = {
  3. "sessId": request.GET['sessId'],
  4. "userName": request.GET['userName'],
  5. "sessionLifetime": SESSION_TIMEOUT,
  6. "idleTimeout": IDLE_TIMEOUT,
  7. }
  8.  
  9. if request.method == 'POST':
  10. logic with the payload
  11. requests.post(url,payload)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement