Hey,
   I would check this out:
http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html

Syntax looks something like:

http = Net::HTTP.new("www.google.com")
headers, body = http.get()


Hope that help
Jim Englert
http://www.jim-rants.com/coding-blog/

On Wed, Nov 19, 2008 at 9:36 AM, Frederick Cheung <
[EMAIL PROTECTED]> wrote:

>
>
> On 19 Nov 2008, at 14:23, Max Williams wrote:
>
> >
> > I know this is bad mvc, but i have a model class that needs to send a
> > request off to a web service.  At the moment i'm building a request
> > string with url and params, and then doing a 'system' call to call
> > curl
> > with the url.  This feels pretty dirty though.  Is there a nicer way
> > to
> > just fire off an http request?
> >
> net/http or similar ?
>
> Fred
> > thanks
> > max
> > --
> > Posted via http://www.ruby-forum.com/.
> >
> > >
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to