-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
30 lines (26 loc) · 772 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import requests
response = requests.get("http://randomfox.ca/floof")
print('status_code', response.status_code)
print('\n')
print('json', response.json())
print('\n')
print('headers', response.headers)
print('\n')
print('content', response.content)
print('\n')
print('raw', response.raw.msg)
print('raw', response.raw.read())
print('raw', response.raw.headers)
print('raw', response.raw.flush())
print('\n')
print('reason', response.reason)
print('\n')
print('request body', response.request.body)
print('request headers', response.request.headers)
print('request method', response.request.method)
print('request url', response.request.url)
print('request hooks', response.request.hooks)
print('\n')
print('text', response.text)
print('\n')
print('url', response.url)