search for: postform

Displaying 20 results from an estimated 33 matches for "postform".

2010 Feb 12
1
help with EXPASY HTML form submission in RCurl package
Hi, I am trying to submit a form to the EXPASY protscale server ( http://www.expasy.ch/tools/protscale.html). I am using the RCurl package and the postForm function available in it. I have extracted the variables for the form from the HTML source page. According to the syntax of postForm, I just need to mention the url and assign values to the input mentioned in the HTML code. The code that I am using is: postForm("http://www.expasy.ch/tools/prot...
2010 Nov 14
1
RCurl and cookies in POST requests
Hello. I know that it's usually possible to write cookies to a cookie file by removing the curl handle and doing a gc() call. I can do this with getURL(), but I just can't obtain the same results with postForm(). If I use: curlHandle <- getCurlHandle(cookiefile=FILE, cookiejar=FILE) and then do: getURL(http://example.com/script.cgi, curl=curlHandle) rm(curlHandle) gc() it's OK, the cookie is there. But, if I do (same handle; the parameter is a dummy): postForm(site, .params=list(par="co...
2008 Dec 09
1
RCurl::postForm() -- how does one determine what the names are of each form element in an online html form?
Dear R-Help, I am looking into using the Open Calais web service (http:// sws.clearforest.com/calaisViewer/) for text mining purposes. I would like to use R to post text into one of the forms on their website. In package RCurl, there is a function called postForm(). This sounds like it would do the job. Unfortunately the URL used in the example is no longer valid (i have emailed the maintainer about this). Question: How does one determine the name of the form elements to use? is there an R function which will print out the names of these elements perhaps?...
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" [{"gender":"u","first_name":"",&...
2012 Dec 02
1
postForm() in RCurl and library RHTMLForms
...w.nseindia.com/content/indices/ind_histvalues.htm" for the index "S&P CNX NIFTY" for dates "FromDate"="01-11-2010","ToDate"="02-11-2010" then read the html table from the page using readHTMLtable() I am using this code webpage <- postForm(url,.params=list( "FromDate"="01-11-2010", "ToDate"="02-11-2010", "IndexType"="S&P CNX NIFTY", "Indicesdata"="Get Details&qu...
2010 Feb 12
1
Help with submitting HTML forms in RCurl
Hi, I am trying to submit a form to the EXPASY protscale server ( http://www.expasy.ch/tools/protscale.html). I am using the RCurl package and the postForm function available in it. I have extracted the variables for the form from the HTML source page. According to the syntax of postForm, I just need to mention the url and assign values to the input mentioned in the HTML code. The code that I am using is: postForm("http://www.expasy.ch/tools/prot...
2012 Jan 30
1
RCurl format
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, _" t...
2010 Nov 04
3
postForm() in RCurl and library RHTMLForms
...://www.nseindia.com/content/indices/ind_histvalues.htm" for the index "S&P CNX NIFTY" for dates "FromDate"="01-11-2010","ToDate"="02-11-2010" then read the html table from the page using readHTMLtable() I am using this code webpage <- postForm(url,.params=list( "FromDate"="01-11-2010", "ToDate"="02-11-2010", "IndexType"="S&P CNX NIFTY", "Indicesdata"="Get Details")...
2012 May 28
1
Rcurl, postForm()
Dear colleagues, Could I get some assistance using postForm() to scrape the business names and addresses at this website: http://www.brantford.ca/business/LocalBusinessCommunity/Pages/BusinessDirectorySearch.aspx I've read through (http://www.omegahat.org/RCurl/RCurlJSS.pdf) and scoured the web for tutorials, but I can't crack it. I'm aware t...
2012 Sep 19
1
scraping with session cookies
...e some data from the web. The problem that I am having is that I cannot get passed the disclaimer page (which produces a session cookie). I have been able to collect some ideas and combine them in the code below but I dont get passed the disclaimer page. I am trying to agree the disclaimer with the postForm and write the cookie to a file, but I cannot do it succesfully.... The webpage cookies are written to the file but the value is FALSE... So any ideas of what I should do or what I am doing wrong with? Thank you for your help, library(RCurl) library(XML) site <- " http://www.wateroffice.ec...
2011 Feb 17
1
RCurl HTTP Post ?
According to [1] and [2], using RCurl to post a form with basic authentication is done using the postForm method. I'm trying to post generated interpolation data from R onto an HTTP form. The call I'm using is page <- postForm('http://our.server.com/dbInt/new', opts = curlOptions=(userpwd="test:test", verbose=T), profileid = "-1", value="1.801", type=&qu...
2012 Jan 04
0
RCurl : Problem with submitting using postForm()
...39;t return the table I am after. I have a feeling it is because there are 2 submit buttons on the page and I'm not hitting the right one. I have tried everything I can think of to submit the form correctly but with no luck. My current code is as follows. library(RCurl) library(XML) page<-postForm("http://tatts.com/racing/outletsearch.aspx", `main_0$racingmiddle_0$CityTextBox`="", `main_0$racingmiddle_0$PostcodeTextbox`="4000", `main_0$racingmiddle_0$StateDropDownList`="Queensland", `main_0$racingmiddle_0$SearchButton`="List Outlet...
2012 Oct 17
0
postForm() in RCurl and library RHTMLForms
...gt; for the index "S&P CNX NIFTY" for > > dates "FromDate"="01-11-2010","ToDate"="02-11-2010" > > > > then read the html table from the page using readHTMLtable() > > > > I am using this code > > webpage <- postForm(url,.params=list( > > "FromDate"="01-11-2010", > > "ToDate"="02-11-2010", > > "IndexType"="S&P CNX NIFTY", > > "In...
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
2009 Nov 19
1
problem post request with RCurl
...</PCT- QueryActivitySummary> </PCT-QueryType_qas> </ PCT-QueryType> </PCT-Query_type> </PCT-Query> </ PCT-InputData_query> </PCT-InputData> </PCT-Data_input></PCT-Data>" > postForm(url, q, style="post", .opts = list(verbose=TRUE)) * About to connect() to pubchem.ncbi.nlm.nih.gov port 80 (#0) * Trying 130.14.29.110... * connected * Connected to pubchem.ncbi.nlm.nih.gov (130.14.29.110) port 80 (#0) > POST /pug/pug.cgi HTTP/1.1 Host: pubchem.ncbi.nlm.nih.gov Acce...
2009 Jun 26
1
how to access Internet from within R?
Let's say I have some automation tasks where I have to fill a table field on a webpage, and then submit it to the server, and then obtain the returned value (a typical web query), how to do that in R? Thanks a lot!
2011 Dec 03
2
Downloading tab separated data from internet
Hi all, I am trying to download some tab separated data from the internet. The data is not available directly at the URL that could be known apriori. There is an intermediate form where start and end dates have to be given to get to the required page. For example, I want to download data for a station 03015795. The form for this station is at:
2016 Apr 01
1
Using R for cURL commands
...data from R to the rest api. My primairy focus was on using R for executing the curl command, however, I'm open 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...
2012 Dec 05
1
request
...ot;), protocols=proxy.noc.titech.ac.jp:3128, port=3332),curlhandle=getCurlHandle()) Error in match(x, table, nomatch = 0L) : object 'proxy.noc.titech.ac.jp' not found > #to check the neos server is active"NeosServer is alive" is returned > Nping(convert=T, nc=NC) Error in .postForm(curl, .opts, .params, style) : Stale CURL handle being passed to libcurl Error in curlSetOpt(writefunction = NULL, curl = curl) : Stale CURL handle being passed to libcurl Since this procedure is not working, would you suggest me how can i fix the problem? i appreciate your help. -- With b...
2009 Jul 01
3
is there a way to extract fata from web pages through some R function ?
I deal with a huge amount of Biology data stored in different databases. The databases belongig to Bioconductor organization can be accessed through Bioconductor packages. Unluckily some useful data is stored in databases like, for instance, miRDB, miRecords, etc ... which offer just an interactive HTML interface. See for instance http://mirdb.org/cgi-bin/search.cgi,