php - Python: how to make HTTP request internally/localhost -


i want send parameters python script on server php script on server using http. suggestions?

this pretty easy using urllib:

import urllib  myurl = 'http://localhost/script.php?var1=foo&var2=bar'  # default action response = urllib.urlopen(myurl)    # output assuming response code 200 data = response.read()             

Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -