From: Eduardo Aldaz-Carroll Date: 2006-06-22T23:07:08+09:00 Subject: Simple post to IIS Server using net/http Dear All I have a simple application that starts by sending a post to an IIS Server with user name and password information. Incredibly it works fine when the ruby application is run in windows, but when run from linux the IIS server receives an empty user name and password. Any idea why this could be and if it is necessary to do any special configuration from linux? Thanks ! # Test client require 'net/http' begin http = Net::HTTP.new("192.168.101.18",80) # POST request -> logging in user = ARGV[0] password = ARGV[1] puts "Logging in as #{ARGV[0]} " user_data = "us=#{user}&pw=#{password}" resp = http.post('/ca_equipos/app_cliente/acceso_app.aspx', user_data) etc... -- Posted via http://www.ruby-forum.com/.