Python - requests


Requirements:
  • requests - (not request but requests)
Optional:
  • Target URL - (You do not have to use this site but I am for Demo Purposes)

Snap Shots


Steps

Step 1

Assert you have requests installed.
$ pip install requests

Step 2

Import Requests:
import requests

Step 3

Set Target URL:
>>>  url = 'http://jsonplaceholder.typicode.com/comments?postId=1'

GET Calls

			requests.get(url, verify=True)
			print(r.json())
		
The url is what we assigned in step 3, verify=True is so that it checks the SSL before requesting
the last line will print the results out in JSON format