curlEscape               package:RCurl               R Documentation

_H_a_n_d_l_e _c_h_a_r_a_c_t_e_r_s _i_n _U_R_L _t_h_a_t _n_e_e_d _t_o _b_e _e_s_c_a_p_e_d

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

     These functions convert between URLs that are human-readable and
     those that have special characters escaped.  For example, to send
     a URL with a space, we need to represent the space as '%20'.

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

     curlEscape(urls)
     curlUnescape(urls)

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

    urls: a character vector giving the strings to be escaped or
          unescaped.

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

     This calls 'curl_escape' or 'curl_unescape' in the libcurl
     library.

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

     A character vector that has corresponding elements to the input
     with the characters escaped or not.

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

     Duncan Temple Lang <duncan@wald.ucdavis.edu>

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

     Curl homepage <URL: http://curl.haxx.se>

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

       curlEscape("http://www.abc.com?x=a is a sentence&a b=and another")

       # Reverse it should get back original
       curlUnescape(curlEscape("http://www.abc.com?x=a is a sentence&a b=and another"))

