Post XML form using httr

∥☆過路亽.° 提交于 2019-12-11 20:38:44

问题


I am trying to POST an xml object using httr

In my application, I am creating the XML object like this:

  doc <- htmlTreeParse(conts, useInternalNodes = T)
  xmlFormula <- xpathSApply(doc, "//*/textarea", xmlValue)
  x <- xmlParseString(xmlFormula)

Then I modify the xml on the fly

and now want to post it using httr without saving it to disk and uploading from a file

  POST(MYURL, body=x) # this won't work 

Is there a method to make the xml object httr friendly?

来源:https://stackoverflow.com/questions/26706159/post-xml-form-using-httr

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!