Prashant Thakur wrote:
> Sharagoz -- wrote:
>> Then you can use 'net/http' to send a regular http request, like so:
>>
>> require 'net/http'
>>
>> connection = Net::HTTP.new("www.google.com")
>> response = ""
>> connection.start do |http|
>> req =
>> Net::HTTP::Get.new("/#hl=en&source=hp&q=ruby+on+rails&fp=c26c79a56c95bda8")
>> response = http.request(req)
>> end
>> #do something with response
>>
>> This can of course be put in the controller, but also the model if that
>> suits you better.
>
> How can I open the page in a new browser.
Basically I wish to open the 2nd page by specifying its url and
parameters in a different window by clicking a link in first application
this link will call the controller function where soap requests will be
sent to server and based on that reponse I open a new website with
parameters.
--
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 [email protected].
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.