search for: userpwd

Displaying 18 results from an estimated 18 matches for "userpwd".

2008 Feb 07
1
field names, aliases and finders.
I can not seem to make finders work with aliases. My goal is to map some fugly field names to nice field names and have the finders work with the nice field names. An example. class Users < ActiveRecord::Base alias :password :UserPWD end This doesn''t seem to work because obviously the object doesn''t have a method called UserPWD. What is the best way (short of a view) to create field name mappings? Is it possible to make it so that my finders also work with the new names so I can type Users.find_by_password r...
2016 Apr 01
1
Using R for cURL commands
...de: *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: Unauthorized". I've filled out the correct username and password, but I can't figure out why I'm getting this error...
2011 Apr 29
4
You don't check for malloc failure
...url.c icecast-2.3.2/src/auth_url.c --- icecast-2.3.2-ORIG/src/auth_url.c Thu Nov 8 16:38:01 2007 +++ icecast-2.3.2/src/auth_url.c Thu Apr 28 19:53:24 2011 @@ -219,6 +219,9 @@ { int len = strlen (client->username) + strlen (client->password) + 2; userpwd = malloc (len); + if (userpwd == NULL) { + abort(); + } snprintf (userpwd, len, "%s:%s", client->username, client->password); curl_easy_setopt (url->handle, CURLOPT_USERPWD, userpwd); } @@ -307,6 +310,9 @@ {...
2010 Nov 22
1
RCurl : All connection are used ?
...d(what=files[i],to=files[i]) } At i=11 I get : (my server has only 10 available open connections available) : Erreur dans curlPerform(url = to, upload = TRUE, readfunction = uploadFunctionHandler(what,  :   Got a 421 ftp-server response when 220 was expected 2 nd Try : ftpConnection=getCurlHandle(userpwd=ftp$userpwd,maxconnects=1,fresh.connect=0) for (i in 1:length(file)){       ftpUpload(what=files[i],to=files[i],curl=ftpConnection) } And I got this error after 30 files (the error is not linked to the web server but to the R session) : Error in file(file, "rb") : all conection are used...
2020 Jan 27
3
Nut-upsuser Digest, Vol 175, Issue 32
....gnupg drwxr-xr-x 4 root root 4096 Jan 26 09:05 .. -rwxrwx--- 1 nutmon nutmon 3523 Sep 25 20:09 .bashrc -rwxrwx--- 1 nutmon nutmon 220 Apr 18 2019 .bash_logout -rwxrwx--- 1 nutmon nutmon 807 Apr 18 2019 .profile root at nutpi:/etc/nut# grep ^[^#] upsd.users [nutmon] password = <userpwd> upsmon master root at nutpi:/etc/nut# grep ^[^#] upsmon.conf RUN_AS_USER nutmon MONITOR deltec-PRA1500 at localhost 1 nutmon <userpwd> master On Mon, Jan 27, 2020 at 7:00 AM <nut-upsuser-request at alioth-lists.debian.net> wrote: > Send Nut-upsuser mailing list submiss...
2011 Sep 28
1
Password protected R Repository
...ver, I want to protect the repo, so I use a .htaccess, placed directly under 'myRepo' on the server. I use 'Authentication Basic' and 'require valid-user'. I've tried a few things. From the obvious: install.packages(repos=getURL('http://www.myServer.se/myRepo', userpwd='user:password'), pkgs='myLib', dep=TRUE) To the more elaborate: h [[alternative HTML version deleted]]
2020 Jan 27
1
Timer doesn't appear to start
...4096 Jan 26 09:05 .. > -rwxrwx--- 1 nutmon nutmon 3523 Sep 25 20:09 .bashrc > -rwxrwx--- 1 nutmon nutmon 220 Apr 18 2019 .bash_logout > -rwxrwx--- 1 nutmon nutmon 807 Apr 18 2019 .profile > > root at nutpi:/etc/nut# grep ^[^#] upsd.users > [nutmon] > password = <userpwd> > upsmon master > > root at nutpi:/etc/nut# grep ^[^#] upsmon.conf > RUN_AS_USER nutmon > MONITOR deltec-PRA1500 at localhost 1 nutmon <userpwd> master > > On Mon, Jan 27, 2020 at 7:00 AM < > nut-upsuser-request at alioth-lists.debian.net> > wrote:...
2009 Feb 03
1
RCurl FTPUpload
...loads the file but does not stop. It repeats the content of the file without stopping and the destination file keeps getting bigger and bigger. Here is the line that I use : ftpUpload("C:/Users/herve/Documents/Document1.txt", "sftp:// xxxx.dedibox.fr/home/herve/Document1.txt", userpwd = "herve:xxxxxx") Any idea why it does not work ? Cordially, Hervé [[alternative HTML version deleted]]
2011 Feb 17
1
RCurl HTTP Post ?
...ccording 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="history"). The page instance shows the HTTP response 500 screen and I get a nullpointerexception in the server logs. The line it points to is dealing with getting an integer out of "profilei...
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, _" this error seems to be due to the underscore "_"
2012 Sep 26
1
RCURL ftp upload - ASCII or Binary type?
I'm trying to upload a file using RCURL:s ftpUpload() to a ftp-server using the following command: > ftpUpload("'VERY.ODD.FILE.NAME(+1)'",to="ftp://x.x.x.x/","' VERY.ODD.FILE.NAME(+1)'",userpwd="USER:PASSWORD") OK 0 The file I'm trying to upload is a very simple text-file but with a bit weird filename. Note the ' on each side of the filename. So the upload itself is successful but the receiver of the file tells me that the file I uploaded was of "Binary" ty...
2020 Jan 27
0
Timer doesn't appear to start
...4096 Jan 26 09:05 .. > -rwxrwx--- 1 nutmon nutmon 3523 Sep 25 20:09 .bashrc > -rwxrwx--- 1 nutmon nutmon 220 Apr 18 2019 .bash_logout > -rwxrwx--- 1 nutmon nutmon 807 Apr 18 2019 .profile > > root at nutpi:/etc/nut# grep ^[^#] upsd.users > [nutmon] > password = <userpwd> > upsmon master > > root at nutpi:/etc/nut# grep ^[^#] upsmon.conf > RUN_AS_USER nutmon > MONITOR deltec-PRA1500 at localhost 1 nutmon <userpwd> master > > On Mon, Jan 27, 2020 at 7:00 AM < > nut-upsuser-request at alioth-lists.debian.net> wrote: >...
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
2012 Jul 13
0
Loading R scripts stored behind htaccess
...Required' error. I've been browsing through the RCurl documentation, since this seems to be the package that will allow me to do this and use the following line of code to download the script content and load a single script: x <- getURL("http://www.example.com/script.R", userpwd="key:secret") write(x, "script.R") source("script.R") I have two direct questions related to this: - Can this be done in an easier/neater way? In some cases there are a considerable amount of scripts that need to be downloaded (up to 7 or so). If not, then this w...
2013 Apr 24
0
string size limits in RCurl
...ing retrieve data from either `curlPerform()` or `getURL()`. Here is non-reproducible code [1], but it should shed some light on the problem. # Note that .base.url is the basic url for the API, q is a query, user # is specified, etc. session = getCurlHandle() curl.opts <- list(userpwd = paste(user, ":", key, sep = ""), httpheader = "Content-Type: application/json") request <- paste(.base.url, q, sep = "") txt <- getURL(url = request, curl = session, .opts = curl.opts, write = basicTextG...
2012 Jun 08
0
XML htmlTreeParse fails with no obvious error
...ght have to do with some of the content of the website having been updated, but given the error, I can't quite figure out what is raising it. Although it works on that simple example, using htmlParse is not really a work around, as I need to use additional arguments in the getURL call (such as userpwd), which I can't provide to htmlParse. Any hints would be greatly appreciated, Cheers, Nico sessionInfo() R version 2.15.0 (2012-03-30) Platform: i386-apple-darwin9.8.0/i386 (32-bit) locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats...
2011 Feb 25
0
RCurl Post
> resp <- postForm('http://our.db/db/new', 'profileid'='181133', 'value'='20110225', 'type'='history','user-agent' = 'R', .opts =list(verbose=T, userpwd='test:test')) * About to connect() to our.db port 80 (#0) * Trying 192.168.1.1... * connected * Connected to our.db (192.168.1.1) port 80 (#0) > POST /db/new HTTP/1.1 Host: our.db Accept: */* Content-Length: 452 Expect: 100-continue Content-Type: multipart/form-data; boundary=---------...
2010 Nov 24
0
4. Rexcel (Luis Felipe Parra)-how to run a code from excel
...what=files[i],to=files[i]) } At i=11 I get : (my server has only 10 available open connections available) : Erreur dans curlPerform(url = to, upload = TRUE, readfunction = uploadFunctionHandler(what,B : B Got a 421 ftp-server response when 220 was expected 2 nd Try : ftpConnection=getCurlHandle(userpwd=ftp$userpwd,maxconnects=1,fresh.connect= 0) for (i in 1:length(file)){ B B B B B ftpUpload(what=files[i],to=files[i],curl=ftpConnection) } And I got this error after 30 files (the error is not linked to the web server but to the R session) : Error in file(file, "rb") : all conection are...