How to execute URL in ruby on rails. ?

Discussion in 'Ruby' started by Vikas Gholap, Jan 16, 2009.

  1. Vikas Gholap

    Vikas Gholap Guest

    i have problem, how to excute a URL string in ruby.


    Input ------>

    if i provide url in textfield named "song_url" like
    "www.mywebsite.com/album/1/mysongs.html".
    and i click on submit button.


    output ----->
    it will give a string in which all html response is stored.

    how i execute this url so that i process data from resulting html.
    --
    Posted via http://www.ruby-forum.com/.
    Vikas Gholap, Jan 16, 2009
    #1
    1. Advertising

  2. Vikas Gholap wrote:
    > if i provide url in textfield named "song_url" like
    > "www.mywebsite.com/album/1/mysongs.html".
    > and i click on submit button.
    >
    >
    > output ----->
    > it will give a string in which all html response is stored.


    Use Net::HTTP or open-uri. Examples posted here two days ago, see
    http://www.ruby-forum.com/topic/175661
    --
    Posted via http://www.ruby-forum.com/.
    Brian Candler, Jan 16, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    6
    Views:
    168
    Michael Campbell
    Mar 17, 2005
  2. Michael Schuerig
    Replies:
    3
    Views:
    208
    Carl Youngblood
    Jun 17, 2005
  3. Josef 'Jupp' SCHUGT
    Replies:
    5
    Views:
    157
    Stephan Kämper
    Jan 24, 2006
  4. Nathaniel Brown
    Replies:
    2
    Views:
    119
    gabriele renzi
    Mar 26, 2006
  5. Jason Wong
    Replies:
    0
    Views:
    150
    Jason Wong
    Nov 20, 2007
Loading...

Share This Page