daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest Jan 16th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import requests
  2. def request(url, data={}, headers={}):
  3.     response = requests.post(url, data=data, headers=headers)
  4.     return (response.headers, response.content.decode())
  5. h, d = request('https://google.com')
  6. print(h)
  7. print(d[:200], '...')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top