Hi "KTD Services" (!) I assume by DELETE, you mean the HTTP method and not the value of a parameter named _method that is processed by the URL script.
If that is the case, then you want to use the customRequest option for the libcurl operation and you don't need or want to use postForm(). Either curlPerform(url = url, customrequest = "DELETE", userpwd = "user:password") or with a recent version of the RCurl package httpDELETE(url, userpwd = "user:password") The parameter _method you are using is being passed on to the form script. It is not recognized by postForm() as being something controlling the request, but just part of the form submission. D. On 1/30/12 2:55 AM, KTD Services wrote: > I am having trouble with the postForm function in RCurl. > > I want to send a the command DELETE https://somewebsite.com.json > > but I can't seem to find it. I could try: > > postForm(url, _method="DELETE", .opts = list(username:password) ) > > but I get the error: > > Error: unexpected input in " postForm(url4, _" > > this error seems to be due to the underscore "_" before "method" > > Any ideas how I can do a DELETE command another way in RCurl? > > Thanks. > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.