Skip to content
Prev 164242 / 398506 Next

RCurl::postForm() -- how does one determine what the names are of each form element in an online html form?

2008/12/10 Tony Breyal <tony.breyal at googlemail.com>:
You need to look at the HTML source of the web page to work out what
the form elements are called. However, in your case, it is not a
simple form; rather the form is handled by a javascript function which
uses Ajax to handle the request. Imitating the javascript, you may be
able to post the data to
http://sws.clearforest.com/calaisViewer//Bridge.asmx/BridgeMe
with an element 'content' containing the (url-encoded) text, and an
element 'type' = 'text/txt'.

If that works it would return the result in an XML block.