Created
April 10, 2015 17:03
-
-
Save Averroes/0e40d6a422ca01c2e938 to your computer and use it in GitHub Desktop.
creating a simple rest based interface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from urllib.request import urlopen | |
| u = urlopen('http://localhost:8080/hello?name=Guido') | |
| print(u.read().decode('utf-8')) | |
| u = urlopen('http://localhost:8080/localtime') | |
| print(u.read().decode('utf-8')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment