Tuesday, June 21, 2011
Wednesday, June 15, 2011
Http delete with authentication ruby
require 'rubygems'
require "net/http"
Net::HTTP.start('www.example.com') {|http|
req = Net::HTTP::Delete.new("/api/products/#{product_id}")
req.basic_auth '#{user_name}', '#{password}'
response = http.request(req)
}
Monday, June 13, 2011
Install sendmail
I used:
It installed sendmail and by this command I could test it:
Result:
Code:
sudo apt-get install sendmail
Code:
sudo ps aux | grep sendmail
Quote:
sudo ps aux | grep sendmail root 10366 0.0 0.7 8216 2020 ? Ss 09:50 0:00 sendmail: MTA: accepting connections 1000 10376 0.0 0.3 2880 796 pts/0 S+ 09:56 0:00 grep sendmail |
Subscribe to:
Posts (Atom)