4 ms·
require 'net/http' require 'uri' output = Net::HTTP.get(URI.parse("http://www.google.com"))
by chrisa 16y ago
require 'net/http'
require 'uri'
output = Net::HTTP.get(URI.parse("http://www.google.com"))
- seanmccann 16y agocurb is a lot faster than net/http require 'curb' c = Curl::Easy.perform("http://www.google.com http://www.google.com) puts c.body_str
- nc 16y agoPremature optimization much?
- bdclimber14 16y agoSo apparently accessing a secure URL isn't straightforward... No login is required, its just an HTTPS but it won't go in curb.
- bdclimber14 16y agoWasn't an SSL problem but a cookie problem...
- bdclimber14 16y agoI wanted to thank you for your help. I wrote a script to scrape over 30,000 courses and textbooks from Arizona State University successfully in a couple days.