How to retrieve the HTTP response contents like header, posts, HTML,etc.?

Discussion in 'Ruby' started by Amit Bobade, May 27, 2011.

  1. Amit Bobade

    Amit Bobade Guest

    Amit Bobade, May 27, 2011
    #1
    1. Advertising

  2. Amit Bobade

    7stud -- Guest

    Re: How to retrieve the HTTP response contents like header, posts,HTML, etc.?

    Amit Bobade wrote in post #1001502:
    > Dear All:
    >
    > I am trying to deal with the HTTP response. I want to retrieve the
    > contents such as header,


    resp.each_header do |name, value|
    puts "#{name} => #{value}"
    end


    > post,


    What is a response 'post'?

    > response


    The response is the response.

    > HTML, JSON, etc. of the HTTP
    > response.


    puts resp.body

    > (Please refer screen shot for the same.)


    I don't think so.

    --
    Posted via http://www.ruby-forum.com/.
     
    7stud --, May 27, 2011
    #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. =?Utf-8?B?QnJhZCBSb2JlcnRz?=

    RE: Response.BinaryWrite or something causes multiple posts

    =?Utf-8?B?QnJhZCBSb2JlcnRz?=, Aug 19, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    573
    =?Utf-8?B?RGFuIEM=?=
    Aug 19, 2004
  2. mike
    Replies:
    2
    Views:
    949
  3. Vivek Mehta
    Replies:
    3
    Views:
    8,728
    Vivek Mehta
    Aug 12, 2004
  4. Kevin Walzer

    Re: PIL (etc etc etc) on OS X

    Kevin Walzer, Aug 1, 2008, in forum: Python
    Replies:
    4
    Views:
    438
    Fredrik Lundh
    Aug 13, 2008
  5. Khai Doan
    Replies:
    2
    Views:
    172
    Thomas 'PointedEars' Lahn
    May 22, 2008
Loading...

Share This Page