Thanks Fred...
I totally agree, i actually build up all the params in a hash anyway. Here it is in your recommended format. One of the params has the complication of actually being a full url with params itself. Curl seems to deal happily with this, i'm guessing it escapes everything nicely. But trying this, i get the same 401 error back (#<Net::HTTPUnauthorized 401 Authorization Required readbody=true>). host = "www.l-mail.biz" port = 80 path = "/scripts/lia/lia.php" param_hash = { :l_cid => '1106', :l_key => 'cg3608898b74a4c688787ab479b8bb9f', :l_content => 'http://ir.chazanga.com/letter/show?encoded=MTE4MiZpdCdzIHdlZG5lc2RheQ==', :l_pb_url => 'http://ir.chazanga.com/letter/confirm', :l_sname => 'chazanga', :l_rname => 'Max Williams', :l_rcname => 'chazanga', :l_raddress1 => 'Suites 17 & 18', :l_raddress2 => '9-12 Middle Street', :l_rcity => 'Brighton', :l_rpostcode => 'BN1 3TN', :l_rcountry => '3', :l_email => '[EMAIL PROTECTED]', :l_fb_emails => '1', :p_user_id => '2054' } response = Net::HTTP.start(host, port) do |http| get = Net::HTTP::Get.new path get.form_data = param_hash get.content_type = "application/x-www-form-urlencoded" http.request get end -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---