python -c 'import urllib2; resp = urllib2.urlopen("http://localhost:10888/cgi-bin/hello.py"); print resp.info(), resp.read()'
Python 2 print headers and content of url
March 4, 2011
One line code examples
March 4, 2011
python -c 'import urllib2; resp = urllib2.urlopen("http://localhost:10888/cgi-bin/hello.py"); print resp.info(), resp.read()'