Richard Conroy
10/9/2006 5:02:00 PM
On 10/9/06, Andrew Stewart <boss@airbladesoftware.com> wrote:
> Hi,
>
> >> I am struggling to post data over https and would be grateful for any
> >> help.
>
> <snip/>
>
> > Try using Mechanize. You can post forms over https with it, and you
> > won't have to deal with encoding query parameters or setting up
> > Net::HTTP.
>
> OK, but I would still like to understand what's wrong with my code so
> I can learn and improve.
Its admirable, but I think Net::HTTP is a bit too low level, and requires a
bit too much HTTP knowledge for many applications. Mechanize seems
to be the business, and possibly Hpricot might also have similar
functionality.
I found Net::HTTP a bit too frustrating to use and the lack of good examples
bothered me a lot. It seems that the real work along these lines (programmatic
HTTP/HTML processing) is done with Mechanize & Hpricot.