From: Alex Young Date: 2006-06-22T23:11:36+09:00 Subject: Re: Simple post to IIS Server using net/http Eduardo Aldaz-Carroll wrote: > 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) Just a thought, but Windows can be a little bit funny when it comes to ARGV. It does separation differently to other shells. It might be worthwhile checking that ARGV[0] and ARGV[1] are actually what you think they are on each platform... -- Alex