erfan shaigani Posted April 8, 2020 Share Posted April 8, 2020 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): print(x.text) #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 More sharing options...
ckrudelux Posted April 16, 2020 Share Posted April 16, 2020 In php you get the URI params by the $_GET variable. In your case you would use $_GET['model'] in php to get the value of model value. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now