Permalink
Browse files

add simple example

  • Loading branch information...
tj committed Mar 13, 2013
1 parent 1a78b24 commit 50b06336f956b32adb38e826bf36a7c3ca65627b
Showing with 13 additions and 0 deletions.
  1. +13 −0 examples/simple-get.js
View
@@ -0,0 +1,13 @@
+
+/**
+ * Module dependencies.
+ */
+
+var request = require('..');
+
+var url = 'https://gist.github.com/visionmedia/9fff5b23c1bf1791c349/raw/3e588e0c4f762f15538cdaf9882df06b3f5b3db6/works.js';
+
+request.get(url, function(err, res){
+ if (err) throw err;
+ console.log(res.text);
+});

0 comments on commit 50b0633

Please sign in to comment.