From: James Edward Gray II Date: 2006-03-15T05:44:53+09:00 Subject: Re: Net::HTML#post_form with ASP On Mar 14, 2006, at 1:09 PM, |MKSM| wrote: > Hello, > > I've been trying to use Net::HTML.post_form to POST to a .asp file. > > url = URI.parse("http://www.ascca.com/findashop/findashopdetail.asp") > res = Poster.post_form(url, { "id" => '1' } ) > puts res.body > > This does not work with ASP pages but works fine with other pages. > > Here's the error i get: > > [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing > operator) in query expression '[ID]='. > > I believe it has something to do with it being urlencoded, but i'm not > exactly sure. > > Any ideas? I think you are running into this: http://ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/182324 I suspect the fix in that thread will get you going again. Hope that helps. James Edward Gray II