search for: cookiejar

Displaying 17 results from an estimated 17 matches for "cookiejar".

2013 Aug 25
2
RCurl cookiejar
...However, when I try what I think is the equivalent command R with RCurl: ch <- getCurlHandle(followlocation = T, header = T, useragent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/20100101 Firefox/23.0") getURL(url = "http://www.corpusdelespanol.org/x.asp", cookiejar = "cookie.txt", curl = ch) no cookie file is saved. What am I missing to reproduce in RCurl what I'm successfully doing in the Terminal? Thank you for your time and help. Earl Brown ----- Earl K. Brown, PhD Assistant Professor of Spanish Linguistics Advisor, TEFL MA Program Depar...
2008 Jul 15
1
Konqueror and the Cookiejar
...'ve been recompiling my ports for the past few weeks and have noticed that some sites are complaining about cookies not being enabled. Further investigation has revealed that if I start konqueror from the terminal prompt, I can get an error message: khtml (dom) Can't communicate with the cookiejar! A workaround I've discovered is to run kded first. Konqueror works with cookies after that. Question: What process is NOT running kded during the startx process? Where is there a log to track this? -- Paul Horechuk Think Free Use Open Source Software _____________________________...
2012 Aug 26
0
Undefined method `signed' for #<Rack::Test::CookieJar>
...In my integration test, I want to simulate the user cookie is set. I store an authentication token as a stored cookie. So in my test. I write: cookies.signed[:authentication_token] = user.authentication_token Unforunately, it sends me a Undefined method `signed'' for #<Rack::Test::CookieJar> error. What should I do? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to ru...
2006 Jan 11
9
Prototype & Cookies
Has anyone written any "cookie" class using prototype? Basically, what I am looking for is if there is an easy way to store mutiple cookies in a single cookie using hash or something - easy writing and retrieval (updating the cookie value). For eg - If I had 25 cookies for my domain 5 of the cookies would either get dropped or not be set (as there is a limit of 20 cookies per domain).
2009 Sep 17
1
RCurl and Google Scholar's EndNote references
...com/&output=citation&hl=fi&oe=ASCII&ct=citation&cd=0 ") Error: Forbidden and then with cookies: getURL(" http://scholar.google.fi/scholar.enw?q=info:U6Gfb4QPVFMJ:scholar.google.com/&output=citation&hl=fi&oe=ASCII&ct=citation&cd=0", .opts=list(cookiejar="cookiejar.txt")) But they both consistently fail the same way. What am I doing wrong? sessionInfo() R version 2.9.0 (2009-04-17) i386-pc-mingw32 locale: LC_COLLATE=Finnish_Finland.1252;LC_CTYPE=Finnish_Finland.1252;LC_MONETARY=Finnish_Finland.1252;LC_NUMERIC=C;LC_TIME=Finnish_Finland.1...
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="cookie"), curl=curlHandle, style="POST") rm(curlHandle) gc...
2007 Aug 17
1
Cookies for Mongrels
This class provides a CookieJar object for Mongrels. Just initialize with response and request objects and then treat like a hash. Does not depend on cgi.rb ry -------------- next part -------------- A non-text attachment was scrubbed... Name: cookies_for_mongrels.rb Type: text/x-ruby-script Size: 4776 bytes Desc: not available...
2006 Jan 07
2
can store array or hash in cookies?
Hi According to rdoc: value - the cookie''s value or list of values (as an array). So, I can use arrays, briliant. But.... It does not work (at least on webrick) I wrote a controller: def check_cookies_first cookies[:chef] = {:value => ["first", "second"], :expires => Time.local (2020)} render_text ":)" end def
2007 May 01
2
Using mixins versus delegation
I''ve been working on a plugin called Http Test where I add HTML validation and link checking to controller and integration tests through an after filter in ApplicationController. I used to mix in a bunch of methods that I needed into the ApplicationController class, but to me this had a bad smell, so I broke much of the code out into separate classes that I delegate to.
2012 Jun 07
1
How to set cookies in RCurl
...r browser and try again. $`NULL` V1 V2 V3 1 $`NULL` V1 1 Cookies disabled $`NULL` V1 1 2 3 I have carefully read section 4.4. from this: http://www.omegahat.org/RCurl/RCurlJSS.pdf and tried the following without succes: curl <- getCurlHandle() curlSetOpt(cookiejar = 'cookies.txt', curl = curl) Any suggestions on how to allow for cookies? Thanks. Math -- View this message in context: http://r.789695.n4.nabble.com/How-to-set-cookies-in-RCurl-tp4632693.html Sent from the R help mailing list archive at Nabble.com.
2012 Sep 19
1
scraping with session cookies
...raph_e.html?mode=text&stn=05ND012&prm1=3&syr=2012&smo=09&sday=15&eyr=2012&emo=09&eday=18" postForm(site, disclaimer_action="I Agree") cf <- "cookies.txt" no_cookie <- function() { curlHandle <- getCurlHandle(cookiefile=cf, cookiejar=cf) getURL(site, curl=curlHandle) rm(curlHandle) gc() } if ( file.exists(cf) == TRUE ) { file.create(cf) no_cookie() } allTables <- readHTMLTable(site) allTables [[alternative HTML version deleted]]
2007 Aug 17
1
Cookie Sessions in Merb?
...ith it. There has been some mention of the extra AES operation slowing down speed (but it''s been said it''s not much of a slowdown), I think having secure cookies would be well worth the cost. Is there interest in this type of session for Merb? Related: I''ve just wrote a CookieJar class - perhaps it would be useful for Merb? http://rubyforge.org/pipermail/mongrel-users/2007-August/003890.html ry
2007 Oct 07
1
How to store a Mechanize object in the database?
...::PluggableParser:0xb712953c @parsers={"text/html"=>WWW::Mechanize::Page}, defaultWWW::Mechanize::File, read_timeoutnil, keep_alive_time300, ca_filenil, watch_for_setnil, proxy_passnil, auth_hash{}, certnil, history[], open_timeoutnil, connection_cache{}, cookie_jar#<WWW::Mechanize::CookieJar:0xb71295b4 @jar={}>, proxy_usernil, digestnil, passwordnil, redirect_oktrue irb(main):040:0> agent.save TypeError: can''t dump anonymous class Class from /usr/lib/ruby/1.8/yaml/rubytypes.rb:6:in `to_yaml'' from /usr/lib/ruby/1.8/yaml/rubytypes.rb:18:in `node_e...
2007 May 10
5
Setting P3P header before Set-Cookie
Hi folks, For a project I''m working on, I need to set an HTTP header BEFORE the Set-Cookie header is sent. Basically, I need to send along our compact privacy policy before the cookie is set. I''ve tried using: @headers[''P3P''] = "P3P: blah blah blah..." ...but the problem is that no matter what I do, the Set-Cookie header is sent first, and the P3P
2006 Feb 19
0
Re: can store array or hash in cookies?
...ot is this then not just a bug? > > Lou Vanek wrote: >> if you add this method, >> >> def cookie(name) >> @cookies[name.to_s].value if @cookies[name.to_s] && >> @cookies[name.to_s].respond_to?(:value) >> end >> >> to the CookieJar class in the cookies.rb file >> you would be able to access the entire cookie array. >> >> cookies.cookie(:chef) >> >> => ["first", "second"] >
2007 Feb 26
1
some Mechanize objects never garbage collected?
...rser 1 | delta 1 StringIO 1 | delta 1 Net::ReadAdapter 1 | delta 1 Net::HTTP::Get 1 | delta 1 WWW::Mechanize 1 | delta 1 WWW::Mechanize::CookieJar 1 | delta 1
2006 Jan 15
0
Cookie-analyzer (antispyware) tool for FreeBSD?
Is anybody aware of existing software that searches the cookiejars of popular browsers available for FreeBSD for known tracking cookies as popular antispyware tools for Windows do? Cheers, -- ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on Fre...