Skip to content
Prev 21497 / 63424 Next

Post CGI forms with built-in R function?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi Mike

 If you don't want to have to download any packages but stick entirely
within R, then you can mimic the code in httpRequest. But,
as far as I know, there is no function in the standard R distribution to
POST an HTTP request.

  As for using
   scan("http://....")

  what is the string you are using? Are you escaping all the characters
correctly? What's the error message?

 If what you are doing involves only relatively basic HTTP requests,
perhaps the simplest thing to do is use the httpRequest package on CRAN.
It does the basics.  You may have to handle chunked responses yourself
and escaping certain characters. But that is a pure R solution that can
be easily installed via install.packages().
Mike Schaffer wrote:
- --
Duncan Temple Lang                    duncan at wald.ucdavis.edu
Department of Statistics              work:  (530) 752-4782
4210 Mathematical Sciences Building   fax:   (530) 752-7099
One Shields Ave.
University of California at Davis
Davis,
CA 95616,
USA
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFEvlwb9p/Jzwa2QP4RAvL1AJ9W/ixKDEl0KbH9yrGmTbEWsXoP+ACfXVdW
vxQEDd6UsMXzX0baOPdhMvo=
=uzVj
-----END PGP SIGNATURE-----