HTTP.get returns String??

Discussion in 'Ruby' started by Hal Fulton, Jul 23, 2007.

  1. Hal Fulton

    Hal Fulton Guest

    This is returning a String for me -- I thought it returned
    an HTTPResponse object?

    This is ruby 1.8.6 (2007-03-13 patchlevel 0) [x86_64-linux]


    Thanks,
    Hal
     
    Hal Fulton, Jul 23, 2007
    #1
    1. Advertising

  2. Hal Fulton

    Hal Fulton Guest

    Hal Fulton wrote:
    > This is returning a String for me -- I thought it returned
    > an HTTPResponse object?
    >
    > This is ruby 1.8.6 (2007-03-13 patchlevel 0) [x86_64-linux]
    >


    Never mind, I figured it out... or Aria told me in xchat.

    The class method returns a string -- the instance method on
    the object returned by #start gives the fancy object.


    Hal
     
    Hal Fulton, Jul 23, 2007
    #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. vizlab
    Replies:
    3
    Views:
    4,277
    Michael Bar-Sinai
    Oct 17, 2007
  2. ++imanshu
    Replies:
    7
    Views:
    500
    ++imanshu
    Aug 23, 2008
  3. serge calderara

    HTTP GET vs HTTP POST protocol

    serge calderara, Nov 4, 2005, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    665
  4. Trans
    Replies:
    2
    Views:
    252
    Trans
    Nov 6, 2005
  5. Srijayanth Sridhar
    Replies:
    19
    Views:
    676
    David A. Black
    Jul 2, 2008
Loading...

Share This Page