Jump to content

get the contents of a GET http method

erfan shaigani

Recommended Posts

hi , im using python to make a get request to a my server and I want to get the 'params' 

import requests

url = 'https://w3schools.com/python/demopage.php'

#demonstrate how to use the 'params' parameter:
x = requests.get(url, params = {"model": "Mustang"})

#print the response (the content of the requested file):

#the file 'demopage.php' looks for a 'model' query string and prints its value.

#the file demo.php looks for a 'model' ...

how can I do that?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...