httpclient               package:base               R Documentation

_R_e_a_d _t_e_x_t _f_r_o_m _a_n _H_T_T_P _s_e_r_v_e_r

_D_e_s_c_r_i_p_t_i_o_n:

     The function reads text from a URL on an HTTP server into the
     specified file. It checks for HTTP errors but will behave
     incorrectly if the data being read contains binary zeros.  This
     function is used by the "socket" method of `download.file'.

_U_s_a_g_e:

     httpclient(url, port=80, error.is.fatal=TRUE, check.MIME.type=TRUE,
                file=tempfile(), drop.ctrl.z=TRUE)

_A_r_g_u_m_e_n_t_s:

     url: The URL to read from

    port: The port (usually 80)

error.is.fatal: Stop if an error is encountered 

check.MIME.type: Require the URL to have a MIME type known to be plain
          ASCII

    file: The file to store the text.

drop.ctrl.z: Drop ASCII EOF (CTRL-Z) characters from the text

_V_a_l_u_e:

     The name of the file containing the downloaded text.

_S_e_e _A_l_s_o:

     `download.file', `read.table.url'

