ipNoteWiki

A note-taking method using iPythonNotebook

TBD:

  1. formatted output
  2. link to another notebook (relative)
  3. absolute link to another notebook

In [7]:
import json
import requests
# from pprint import pprint

r = requests.get("http://localhost:80/")
# headers=json.loads(r.headers)
# headers=json.dumps(r.headers,indent=2)

print( "%s" % (r.text))

print( r.headers  )

# TBD: how to style output?


<html><body><h1>It works!</h1></body></html>

{'content-length': '45', 'content-location': 'index.html.en', 'accept-ranges': 'bytes', 'vary': 'negotiate', 'keep-alive': 'timeout=5, max=100', 'server': 'Apache/2.4.16 (Unix) PHP/5.5.27', 'tcn': 'choice', 'last-modified': 'Mon, 11 Jun 2007 18:53:14 GMT', 'connection': 'Keep-Alive', 'etag': '"2d-432a5e4a73a80"', 'date': 'Sat, 05 Sep 2015 04:19:08 GMT', 'content-type': 'text/html'}