Displaying 7 results from an estimated 7 matches for "postfield".
Did you mean:
postfields
2012 Oct 30
2
RCurl - curlPerform - Time out?!?
...quot;=paste('SID="',s_session,'"',sep=""),"Content-Length"=paste(nchar(s_body)),"Host"="search.webofknowledge.com","Connection"="Keep-Alive","User-Agent"="Apache-HttpClient/4.1.1
(java 1.5)"),
postfields=s_body,
writefunction = h$update
,verbose =
TRUE)
,TRUE)
print(i)
}
[[alternative HTML version deleted]]
2007 Nov 12
1
Microsoft SOAP - Help!!
...t;
</SOAP-ENV:Envelope>'
curlPerform(url="http://soap.search.msn.com/webservices.asmx?wsdl",
httpheader=c(Accept="text/xml", Accept="multipart/*",
'Content-Type' = "text/xml; charset=utf-8"),
postfields=body,
writefunction = h$update,
verbose = FALSE
)
##Put the responce in body.
body = h$value()
h$reset()
An now the crazy stuff. This code works well for some keywords but not for
all.
So for the Query:"Cancer" the code works fine, but for the Query: "...
2008 Aug 28
1
RCurl: authentication when posting forms
Hi,
Has anyone successfully used RCurl for posting data to a
password-protected site? I
have tired using option netrc=1 with both postForm and curlPerform (with
postfields option) but can't authenticate.
I would happily provide more details if some one has had some experience
with this.
Thanks very much.
Valerie
2016 Apr 01
1
Using R for cURL commands
...to other approaches. The method I've been using so far:
I found some information online suggesting i'd use this code:
*js is a json from my R environment
Library(RCurl)
postForm("https://MYWEBSITE.eu/api/v2/organisations/abc/projects/cosson/datasets/DATABASE",
.opts = list(postfields = js,
httpheader = c('Content-Type' = 'application/json', Accept = 'application/json'),
userpwd = "name:pwd",
ssl.verifypeer = FALSE))
(userpwd and url have been changed to hide sensitive information)
This leads to the following error: "Error: Unauthori...
2010 Apr 16
0
RCurl slow when sending data over 1kb
...sing RCurl's curlPerform command to send an XML string to an HTTP server running on the localhost. The command is something like this:
reader <- basicTextGatherer()
curlPerform(url="http://127.0.0.1/",
httpheader=c('Content-Type' = "text/xml; charset=utf-8"),
postfields=toString.XMLNode(xmlRoot(xdoc)),
writefunction=reader$update,
.opts=curlOptions(noproxy="*"))
When sending a short string, the web server responds instantly. However, when the content-length gets above 1024 bytes, the server takes about 2 seconds to receive all the content that is bei...
2011 Apr 29
1
RCurl and postForm()
Hi everybody,
I think that I am missing something fundamental in how strings are passed from a postForm() call in R to the curl or libcurl functions underneath. For example, I can do the following using curl from the command line:
$ curl -d "Archbishop Huxley" "http://www.datasciencetoolkit.org/text2people"
2009 Nov 19
1
problem post request with RCurl
Hi, I am trying to use a CGI service (Pubchem PUG) via RCurl and am
running into a problem where the data must be supplied via POST - but
I don't know the keyword for the argument.
The data to be sent is an XML fragment. I can do this via the command
line using curl: I save the XML string to a file called query.xml and
then do
curl -d @query.xml