diff script.rb @ 7:8c29444cb5fd

Just did some work
author Yading Song <yading.song@eecs.qmul.ac.uk>
date Sat, 20 Apr 2013 19:01:57 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/script.rb	Sat Apr 20 19:01:57 2013 +0200
@@ -0,0 +1,8 @@
+require 'open-uri'
+
+kittens = open('http://placekitten.com/')
+response_status = kittens.status
+response_body = kittens.read[559, 441]
+
+puts response_status
+puts response_body
\ No newline at end of file