search for: http_cookie

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

2006 Dec 11
2
Does mongrel look at the Rails page cache?
Hi all. I''m trying to skip the Rails page cache if the user is logged in: --- # Rewrite index to check for static RewriteCond %{HTTP_COOKIE} !^.*logged_in=yes.*$ RewriteRule ^/$ /index.html [QSA] # Rewrite to check for Rails cached page RewriteCond %{HTTP_COOKIE} !^.*logged_in=yes.*$ RewriteRule ^([^.]+)$ $1.html [QSA] # Redirect all non-static requests to cluster RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*...
2006 Jul 10
4
Test Mongrel 0.3.13.4 Please
Hey Folks, There''s a nasty little bug in 0.3.13.3 when running in development mode which could cause all sorts of problems. Please grab the pre-release of 0.3.13.4 and tell me if it works for you: gem install mongrel --source=http://mongrel.rubyforge.org/releases/ Thanks! -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need
2007 May 15
1
esi cache server built on mongrel
...already been very useful for me and my coworkers. I''m calling it mongrel-esi. ESI stands for Edge Side Include. The specs live here, http://www.w3.org/TR/esi-lang. I currently only have support for <esi:include, <esi:try, <esi:attempt, and <esi:except. Also, it supports HTTP_COOKIES, so fragments can be conditionally cached by a cookie. I have implemented a few different parsers for ESI, one using hpricot to process the whole document and another that uses Transfer-Encoding: chunked to stream the fragments back to the browser as they are available. I''m hoping thi...
2010 Sep 08
2
Rails 2.3.9 breaks sessions with Active Record or Memcache store
A Rails 2.3.9 app with Active Record or Memcache session store will never send the session ID cookie to a client if the client doesn''t send any HTTP cookies in its requests. Rails integration tests didn''t catch this because they always send the HTTP_COOKIE header, even if it''s empty. This is a huge bug, as it can break keeping sessions on sites which don''t set any additional cookies for its visitors. Visitors without existing cookies will not be able to log in, for example (this is how I discovered the bug). Lighthouse ticket and...
2007 May 30
0
Headers munged into RAW_POST_DATA
.../html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 * HTTP_ACCEPT_CHARSET : ISO-8859-1,utf-8;q=0.7,*;q=0.7 * HTTP_ACCEPT_ENCODING : gzip,deflate * HTTP_ACCEPT_LANGUAGE : en-us,en;q=0.5 * HTTP_CONTENT_LENGTH : 582 * HTTP_CONTENT_TYPE : application/x-www-form-urlencoded * HTTP_COOKIE : accepting=1; * HTTP_HOST : foo.com * HTTP_MAX_FORWARDS : 10 * HTTP_REFERER : https://foo.com/ad_keywords/new?ad=5&cid=7 * HTTP_USER_AGENT : Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 *...
2007 May 29
1
Headers munged into RAW_POST_DATA
...q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 * HTTP_ACCEPT_CHARSET : ISO-8859-1,utf-8;q=0.7,*;q=0.7 * HTTP_ACCEPT_ENCODING : gzip,deflate * HTTP_ACCEPT_LANGUAGE : en-us,en;q=0.5 * HTTP_CONTENT_LENGTH : 582 * HTTP_CONTENT_TYPE : application/x-www-form-urlencoded * HTTP_COOKIE : accepting=1; * HTTP_HOST : foo.com * HTTP_MAX_FORWARDS : 10 * HTTP_REFERER : https://foo.com/ad_keywords/new? ad=5&cid=7 * HTTP_USER_AGENT : Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0...
2006 Jan 02
0
PHP Integration
...a directory in one of two ways either via .htaccess or a php include file. The following rules are generated for a protected directory''s .htaccess file: ########### START ##################### Options +FollowSymLinks RewriteEngine On ## allow access for product #5 RewriteCond %{HTTP_COOKIE} amember_nr=([a-zA-Z0-9]+) RewriteCond /home/market5/public_html/members/data/new_rewrite/%1-5 -f RewriteRule ^(.*)$ - [L] ## if user is not authorized, redirect to login page RewriteRule ^(.*)$ http://www.mydomain.com/members/plugins/protect/new_rewrite/login.php?v= %1-5&url=%{REQUEST_URI}?%...
2010 Mar 04
0
Uploadify authentication problem
...FlashSessionCookieMiddleware def initialize(app, session_key = ''_session_id'') @app = app @session_key = session_key end def call(env) if env[''HTTP_USER_AGENT''] =~ /^(Adobe|Shockwave) Flash/ req = Rack::Request.new(env) env[''HTTP_COOKIE''] = "#{@session_key}=#{req.params[@session_key]}".freeze unless req.params[@session_key].nil? end @app.call(env) if @app end end ------------------------------ Thanks. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed t...
2006 May 24
1
Authentication between Instiki and Mailman Solved!
...y all subdomains which is completely fine. The next step was to make Apache recognize the cookie which was a bit harder than I thought. I amended the /etc/httpd/conf.d/mailman.example.com.conf config file with the following mod_rewrite rules. # /etc/httpd/conf.d/mailman.example.com RewriteCond %{HTTP_COOKIE} !^.*ldap_username_2006=.*$ RewriteRule .*$ http://instiki.example.com/wiki/auth?mailman_from=http://mailman.example.com%{REQUEST_URI} So, there was a little bit of more hacking in the "auth" view to force a redirect back to mailman if that''s where the request originated. This...
2010 Sep 09
1
406 Not Acceptable with swfupload
...ion_id'') @app = app @session_key = session_key end def call(env) if env[''HTTP_USER_AGENT''] =~ /^(Adobe|Shockwave) Flash/ req = Rack::Request.new(env) params = ::Rack::Utils.parse_query(env[''QUERY_STRING'']) env[''HTTP_COOKIE''] = [ @session_key, params[@session_key] ].join(''='').freeze unless params[@session_key].nil? end @app.call(env) end end ------ controller def create @asset = Asset.new(params[:asset]) respond_to do |format| if params[:Filedata] @asset =...
2007 Jan 26
0
Problems with assert_select in integration tests
...0ef83bbfa107b6f"]], @env_table={"CONTENT_LENGTH"=>nil, "HTTP_HOST"=>"www.example.com", "REMOTE_ADDR"=>"127.0.0.1", "CONTENT_TYPE"=>"application/x-www-form-urlencoded", "HTTPS"=>"off", "HTTP_COOKIE"=>"_session_id=d0060c4ee33f3d58c0ef83bbfa107b6f; ", "REQUEST_URI"=>"/account/new_account_step_two", "SERVER_PORT"=>"80", "QUERY_STRING"=>nil, "HTTP_ACCEPT"=>"text/xml,application/xml,application/xhtml+xml...
2004 Dec 02
3
No Files Seen via vmail.cgi
I am having a problem with the Vmail Web app and was hoping someone has some advice. I have been able to install vmail.cgi. I am able to bring up the vmail web page and login with out problems. However, I never see any vmails listed even when there are vmails present in the directory [root@linux-home INBOX]# ls -l total 40 -rwxrwxrwx 1 root root 255 Dec 2 14:45 msg0000.txt
2008 May 17
4
Setting cookies in service overloader thingo
I''m implementing a simpler version of the Cookie Session Store in Rails 2.0. If you know what that is, skip the next paragraph. A cookie session store stores the session data inside cookies, on the client, and signs them using a secret string, hashed together. The user can decode the cookie easily if they know much about computers and see what''s inside, but they
2012 Mar 22
0
problems configuring cluster to lucci and virtual machines resource
...ion/xml;q=0.9,*/*;q=0.8' HTTP_ACCEPT_CHARSET: 'ISO-8859-1,utf-8;q=0.7,*;q=0.3' HTTP_ACCEPT_ENCODING: 'gzip,deflate,sdch' HTTP_ACCEPT_LANGUAGE: 'en-US,en;q=0.8,es-419;q=0.6,es;q=0.4' HTTP_CACHE_CONTROL: 'max-age=0' HTTP_CONNECTION: 'keep-alive' HTTP_COOKIE: 'tabCookie=0; expertMode=0; luci=ac68c9121cd1d044ebf15a2f2ec3db1252bb2ba7148b8328446d88a7323307db9627c40a; auth_tkt="63c7278294e41b63fce01b6af2eef3124f6b26ddroot!"' HTTP_HOST: '192.168.0.88:4443' HTTP_ORIGIN: 'https://192.168.0.88:4443' HTTP_REFERER: ' h...
2007 Sep 17
2
mongrel_rails hang and does not respond
Hello, I''ve install ror/mongrel etc, etc on a linux server (rhes). As i''m not root, all package startinf from ruby have been install into ~/gconf/usr ruby-1.8.6 and all of this gem package: -r-xr--r-- 1 dimnce dba 168448 Aug 9 14:53 rails-1.2.3.gem -r-xr--r-- 1 dimnce dba 84480 Aug 9 14:56 rake-0.7.3.gem -r-xr--r-- 1 dimnce dba 217088
2008 Oct 10
17
authenticity_token sent, still InvalidAuthenticityToken
Hi! To send the authenticity token from flex back to the server, I followed this: http://blog.dt.org/index.php/2008/06/rails-2-flex-3-and-form-authenticity-tokens/ I have two controllers in my rails app. The method described in the link above works with the actions in one controller, but does not work with the other. The controller which does not work has just one action which performs a file
2007 Jun 28
1
DRb server crashing
...-urlencoded * GATEWAY_INTERFACE : CGI/1.2 * HTTP_ACCEPT : */* * HTTP_ACCEPT_ENCODING : gzip, deflate * HTTP_ACCEPT_LANGUAGE : sv-se * HTTP_CONNECTION : Keep-Alive * HTTP_CONTENT_LENGTH : 872 * HTTP_CONTENT_TYPE : application/x-www-form-urlencoded * HTTP_COOKIE : _blocks_session_id=6c6a8092f55f2b5160197f33ec616e74; __utmz=26552955.1182412857.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); __utmc=26552955; __utmb=26552955; auth_token=4618c42bf7a93f8d74e9bef8eedb1c9fbfb37690; __utma=26552955.823564440.1182412857.1183021598.1183026292.14 * HT...
2006 Aug 20
14
http parser
Just thought I''d let you know that your http parser worked great for creating an http protocol handler for Eventmachine. It wouldn''t take that much effort to use Eventmachine for Mongrel, might be worth a shot just to see how it does. A few things would need to be restructered, like HttpRequest where you read the rest of the body, and calling the handler. But it