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'

