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]='.


The problem is that the receiving end seems to be expecting id in the
query string: request.querystring("id") for GET vs. request.form("id")
for POST in ASP.

HTH

C