Hi Folks, I suspect this will be a 1-liner from someone, as it seems like it should be really easy but I''ve not worked it out yet. I am just looking to invoke a GET request to a remote HTTP resource (php script) from my rails3 app, with some URL parameters. I''m not bothered about the response, essentially I am looking to trigger a PHP method through this. Whats the best way to proceed with this kind of requirement? Muchos thanks guys Paul -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi folks, Can I take it that this is harder than it sounds? Would have thought it should be dead simple but not sure. Thanks, Paul On Jun 23, 2:29 pm, paulo <paul.a.taylo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Folks, > > I suspect this will be a 1-liner from someone, as it seems like it > should be really easy but I''ve not worked it out yet. > > I am just looking to invoke a GET request to a remoteHTTPresource > (php script) from my rails3 app, with some URL parameters. I''m not > bothered about the response, essentially I am looking to trigger a PHP > method through this. > > Whats the best way to proceed with this kind of requirement? > > Muchos thanks guys > > Paul-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 24 June 2011 16:09, paulo <paul.a.taylor84-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Jun 23, 2:29 pm, paulo <paul.a.taylo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> I am just looking to invoke a GET request to a remoteHTTPresource >> (php script) from my rails3 app, with some URL parameters. I''m not >> bothered about the response, essentially I am looking to trigger a PHP >> method through this. > > Can I take it that this is harder than it sounds? Would have thought > it should be dead simple but not sure.Nope, on the contrary, you''re right, it''s very starightforward. Googling "ruby http request" got me the API: http://ruby-doc.org/stdlib/libdoc/net/http/rdoc/classes/Net/HTTP.html -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.