complete                package:RCurl                R Documentation

_C_o_m_p_l_e_t_e _a_n _a_s_y_n_c_h_r_o_n_o_u_s _H_T_T_P _r_e_q_u_e_s_t

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

     This is a generic function that is used within the RCurl package
     to force the completion of an HTTP request. If the request is
     asynchronous, this essentially blocks until the request is
     completed by repeatedly asking for more information to be
     retrieved from the HTTP connection.

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

     complete(obj, ...)

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

     obj: the object which is to be completed. This is typically a
          'MultiCURLHandle-class' instance.

     ...: additional arguments intended to be used by specific methods.

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

     Duncan Temple Lang

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

     <URL: http://curl.haxx.se>, specifically the multi interface of
     libcurl.

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

     'MultiCURLHandle-class' 'push', 'pop'

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

     f = system.file("NAMESPACE", package = "RCurl")
     postForm("http://eeyore.ucdavis.edu/cgi-bin/testForm1.pl",
              "fileData" = fileUpload(f))

     postForm("http://eeyore.ucdavis.edu/cgi-bin/testForm1.pl",
              "fileData" = fileUpload("",
                                      paste(readLines(f), collapse = "\n"),
                                      "text/plain"))

     postForm("http://eeyore.ucdavis.edu/cgi-bin/testForm1.pl",
              "fileData" = fileUpload(f,
                                      paste(readLines(f), collapse = "\n")
                                      ),
               .opts = list(verbose = TRUE, header = TRUE))

