simplePostToHost         package:httpRequest         R Documentation

_S_e_n_d_s _S_i_m_p_l_e _P_o_s_t _R_e_q_u_e_s_t _t_o _H_T_T_P _S_e_r_v_e_r (_h_o_s_t)

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

     Sends Post Request to HTTP Server

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

             simplePostToHost(host, path, referer, datatosend, port=80)

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

    host: The host to which to send the Request eg.: www.spiegel.de,
          localhost

    path: The path to the file eg. '/cgi-bin/paramlist.cgi' or
          '/index.html'

 referer: something like www.myhome.org

datatosend: key value pairs pairs separated by &
          '"pid=14&pollvotenumber=2\n4"'

    port: its 80 or 8080 most frequently

_D_e_t_a_i_l_s:

     It is a simple http client. So it does not take care of special
     chars e.g. whitspaces. For details see e.g. perl
     HTTP::Request::Common documentation. and
     'http://www.w3.org/Protocols/rfc1341/0_TableOfContents.html'

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

     The document which the server returns as a string.

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

     E.W.Wolski wolski@molgen.mpg.de

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

     getToHost, postToHost

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

     #before you use the example check that the server www.molgen.mpg.de is running.
     #port <- 80
     #data = "pid=14&poll_vote_number=2";
     #simplePostToHost("www.molgen.mpg.de","/~wolski/test.php4","",data,port=port)

