omegahat / RCurl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

postForm does not return response with headerfunction

RaymondMcT opened this issue · comments

When postForm is used with the headerfunction option set, it returns NULL instead of the proper response. It successfully completes the post, and reads the headers correctly, but the response is broken. I've tested it on a number of systems and number of different version in R and it's the same bug across the board. On Mac it outputs the response in gray font looking like a comment and on windows it does not output anything.

More detailed information is here

The bug also appears on this system.

sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_Canada.1252 LC_CTYPE=English_Canada.1252
[3] LC_MONETARY=English_Canada.1252 LC_NUMERIC=C
[5] LC_TIME=English_Canada.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] RCurl_1.95-4.1 bitops_1.0-6

curlVersion()$version
[1] "7.19.6"

You should also pass the writefunc (e.g. basicTextGatherer) along with the headerfunction.