You can also use Ruby's Net Http standard library if you just want to
do a simple file download:
require 'net/http'

Net::HTTP.start("www.ruby-lang.org") { |http|
  resp = http.get("/images/logo.gif")
  open("rubylogo.gif", "wb") { |file|
    file.write(resp.body)
   }
}

-Charley

On 9/25/06, Luke <[EMAIL PROTECTED]> wrote:
> Can you show me the example of this www:mechanize beacuse i don't know how
> to do it
>
> thnx
>
> Luke
>
> >
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Wtr-general mailing list
> > Wtr-general@rubyforge.org
> > http://rubyforge.org/mailman/listinfo/wtr-general
> >
> >
>
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to