Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # ./lineprocessor capitalizer.js -p 9222 --main-cycle-in-cpp --callback
- import httplib
- import json
- v8Connection = httplib.HTTPConnection('localhost:9222')
- # jsonHeader = { "Content-type": "application/json" }
- continueRequest = { "seq": 1, "type": "request", "command" : "continue" }
- continueRequestJSON = json.dumps(continueRequest)
- v8Connection.request("POST", "", continueRequestJSON)
- v8Response = v8Connection.getresponse()
- print v8Response.status, v8Response.reason
- data = v8Response.read()
- print data
- v8Connection.close()
Add Comment
Please, Sign In to add comment