From: Ferdous ara Date: 2012-12-08T17:47:58+09:00 Subject: Parsing json which require username and password Hi I want Fetch a web page which has json output, but the problem is, that page has username and password, so i am using like this #!/usr/bin/ruby require 'rubygems' require 'json' current=`curl -fs -basic -u "username:password" http://ourmonitoringsystem.lan/cgi-bin/status.cgi?serviceprops=42&servicestatustypes=28&type=detail&hostprops=10&host=all&page=1&entries=all&view_mode=json` result=JSON.parse(current) puts result But ts its giving me data + html output .. what will be the best way to achive my goal ? Fosiul -- Posted via http://www.ruby-forum.com/.