getHTTPContent             package:SSOAP             R Documentation

_P_r_o_c_e_s_s _r_a_w _H_T_T_P _h_e_a_d_e_r _i_n _S _o_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

     This takes the lines read from an HTTP connection and splits them
     into the header information and the content/payload. It organizes
     the header information into a list of name-value pairs
     corresponding to the 'name: value' liness. The first line typicall
     gives the status information and that is split into a status value
     (an integer) and a status message and put into the resulting
     table.

     And it combines the content lines into a single string.

_U_s_a_g_e:

     getHTTPContent(lines)

_A_r_g_u_m_e_n_t_s:

   lines: a character vector of the individual lines, usually obtained
          by reading from an HTTP socket connection
          ('socketConnection') using 'readLines'. 

_V_a_l_u_e:

  header: a named character vector giving the name-value pairs from the
          HTTP header. The status line  which is not of the form 'name:
          value' 

 content: a string giving the content returned from the HTTP
          connection.

_A_u_t_h_o_r(_s):

     Duncan Temple Lang <duncan@research.bell-labs.com>

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://www.w3.org/TR/SOAP/> <URL:
     http://www.omegahat.org/SSOAP>, <URL:
     http://www.omegahat.org/bugs>.

_S_e_e _A_l_s_o:

     '.SOAP'

_E_x_a_m_p_l_e_s:

