Just a note: The Poster class is a Net::HTTP subclass. I was using it to test the code. You could just use Net::HTTP instead. Regards, Ricardo On 3/14/06, |MKSM| <mksm.sama / gmail.com> 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? > > Thanks, > > Ricardo Amorim > >