Posts

Showing posts with the label srikanthjeeva

Making a http/https post request

Spent an hour to find out how to send a https post request and this is how .. require 'rubygems' require 'net/http' require 'net/https' require 'uri' http = Net::HTTP.new('facebook.com', 443) http.use_ssl = true path = "/oauth/access_token" data = 'id=123456' resp, data = http.post(path, data) puts resp.inspect puts data.inspect

image science requirement

.ruby_inline/Inline_ImageScience_aa58.c:2:23: error: FreeImage .h: No such file or directory getting such an error?? just install freeimage, http://www.urbanpuddle.com/articles/2008/01/22/install-freeimage-imagescience-on-ubuntu-gutsy#comments the above link will guide u in installing.. thanks,