search for: http_accept

Displaying 20 results from an estimated 30 matches for "http_accept".

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
2009 Feb 20
6
How to mock an object defined in the before_filter function?
...ot; do it "should render destroy.rjs in case of success" do @comment = mock_model(Comment) @comment.stub!(:id).and_return(1) @comment.stub!(:destroy).and_return(:true) controller.stub!(:find_comment).and_return(@comment) # execute ajax request request.env["HTTP_ACCEPT"] = "application/javascript" post :destroy, :comment_id => 1, :item_id => 1, :item_type => "Space" response.should render_template("destroy") end end
2007 Jan 20
0
Best way to force a respond_to format
I am playing around with the idea of adding to the HTTP_ACCEPT header method and trying to utilize WURFL for detecting mobile devices by USER_AGENT instead. I''m thinking I will set up some kind of before_filter in my controller, to intercept all requests and compare the USER_AGENT to some data source. If I detect that the USER_AGENT is a mobile devi...
2012 Jul 12
0
Set requests' header inside spec/routing
...350-rest-api-versioning). For instance, there is a spec/requests spec: require ''spec_helper'' describe "My Friends" do describe "GET /my/friends.json" do it "should get my_friends_path" do get v1_my_friends_path, {}, {''HTTP_ACCEPT'' => ''application/vnd.myapp+json; level=1''} response.status.should be(401) end end end And it works well. But (keeping this example) how can we write the routing spec? For instance this spec isn''t correct: require ''spec_helper...
2009 Jun 17
4
Serverside AjaxRequest or AjaxUpdater detections
Hi all, This question might be a long shot, but I''m going to ask it anyway. In my application, I''ve created a before_filter that does some magic. It looks like this: if request.xhr? then render :update do |page| page.redirect_to url_for_thingy end else redirect_to redirect_to url_for_thingy end This works perfectly, however, I have one annoyance. On the server side,
2007 Sep 18
1
Mongrel Upload Progress progress method returns Content-Length: 0
...e above shows that attempts through the browser and curl are actually hitting the filesController, as evidenced in the log, but the content returned is nothing - 0 length. I''ve turned on mongrel debugging, and nothing jumps out at me, only difference I''ve found in the logs is the HTTP_ACCEPT variable. I''m guessing it''s some kind of incompatiability with Zlib or something. The ruby on the non-working Xserve is compiled from source using the newest readline. Any idea where to start debugging? -- Charles Brian Quinn self-promotion: www.seebq.com highgroove studios: w...
2008 Jan 04
1
Howto write a mongrel handler for a CGI app using CGIWrapper
...per.new(request, response) if !cgi[''uri''] || (cgi[''uri''] == '''') response.start(200, true) do |header, body| Foo.error("URI argument is required", output=body) end end format = request.params[''HTTP_ACCEPT''] == ''text/plain'' ? ''text'' : ''html'' ape = Ape.new({ :crumbs => true, :output => format }) if cgi[''user''] && cgi[''pass''] ape.check(cgi[''uri''], cgi['...
2007 May 30
0
Headers munged into RAW_POST_DATA
...l Transport Vans\r\nMedical Patient Transportation \r\nMedical Patient Transport"}, "cid"=>"7"} * Rails root: /prod/amp/current * CONTENT_LENGTH : 582 * CONTENT_TYPE : application/x-www-form-urlencoded * GATEWAY_INTERFACE : CGI/1.2 * HTTP_ACCEPT : text/xml,application/xml,application/ xhtml+xml,text/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...
2007 May 29
1
Headers munged into RAW_POST_DATA
...port Vans\r\nMedical Patient Transportation \r \nMedical Patient Transport"}, "cid"=>"7"} * Rails root: /prod/amp/current * CONTENT_LENGTH : 582 * CONTENT_TYPE : application/x-www-form-urlencoded * GATEWAY_INTERFACE : CGI/1.2 * HTTP_ACCEPT : text/xml,application/xml,application/ xhtml+xml,text/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 :...
2004 Aug 24
1
error when unsubscribe (PR#7198)
...R_S_DN_L Zurich HTTP_HOST stat.ethz.ch SCRIPT_URL /mailman/options/r-help HTTPS on SSL_SERVER_I_DN_L Zurich HTTP_CONNECTION Keep-Alive PATH_TRANSLATED /var/www/vhosts/sfs/htdocs/r-help HTTP_CACHE_CONTROL no-cache SSL_SERVER_S_DN_C CH REQUEST_URI /mailman/options/r-help HTTP_ACCEPT application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* SSL_SERVER_M_SERIAL 13 SSL_SERVER_S_DN_CN stat.ethz.ch HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; H010818; (R1 1.3)) nokeepalive...
2005 Jun 26
0
Bug in Mailman version 2.1.5
...e Value HTTP_REFERER http://lists.digium.com/mailman/confirm/asterisk-users/f68f025a805c6fd7a439027c9b780828bcc5d5a7 SERVER_SOFTWARE Apache SCRIPT_NAME /mailman/confirm SERVER_SIGNATURE REQUEST_METHOD POST PATH_INFO /asterisk-users SERVER_PROTOCOL HTTP/1.1 QUERY_STRING CONTENT_LENGTH 137 HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7 HTTP_USER_AGENT Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 HTTP_CONNECTION keep-alive SERVER_NAME lists.digium.com REMOTE_ADDR 198.54.202.226 HTTP_VIA 1.1 ndf-cache2 (NetCache NetApp/5.5R6D36), 1.1 rba-cache1 (NetCache...
2008 Mar 05
3
having trouble specing an ajax request
Do I need to spec an AR. If yes, what is the best way to spec this. here is the code - def index @deals = Deal.paginate(:all, :conditions => prepare_search_conditions, :order => ''created_at DESC'', :page => params[:page] ) if request.xhr? render :update do |page| page.replace_html "table", :partial =>
2006 Jul 27
3
WAP With Rails?
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 1458 bytes Desc: not available Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060727/c1c4dc5d/attachment-0001.jpe -------------- next part -------------- A non-text attachment was scrubbed... Name: not available
2008 Apr 17
0
Error log, when using apache2.2.x modproxy with mongrel
...coding: gzip,deflate\r\nAccept-Charset: Big5,utf-8;q=0.7,*;q=0.7\r\nX-Forwarded-For: 127.0.0.1\r\nX-Forwarded-Host: www.testkoji.com\r\nX-Forwarded-Server: www.testkoji.com\r\nConnection: Keep-Alive\r\n\r\n" --- PARAMS: {"HTTP_X_FORWARDED_HOST"=>"www.testkoji.com", "HTTP_ACCEPT_ENCODING"=>"gzip,deflate", "HTTP_USER_AGENT"=>"Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.9b5) Gecko/2008032620 Firefox/3.0b5", "HTTP_ACCEPT_LANGUAGE"=>"zh-tw,en-us;q=0.7,en;q=0.3", "HTTP_HOST"=>"www.testkoj...
2010 Sep 09
1
406 Not Acceptable with swfupload
---------flash_session_cookie_middleware.rb require ''rack/utils'' class 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) params =
2004 Feb 06
0
Bug (PR#6550)
...Zurich HTTP_HOST www.stat.math.ethz.ch SCRIPT_URL /mailman/options/r-help HTTPS on SSL_SERVER_I_DN_L Zurich HTTP_CONNECTION Keep-Alive PATH_TRANSLATED /var/www/vhosts/sfs/htdocs/r-help HTTP_CACHE_CONTROL no-cache SSL_SERVER_S_DN_C CH REQUEST_URI /mailman/options/r-help HTTP_ACCEPT application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* SSL_SERVER_M_SERIAL 07 SSL_SERVER_S_DN_CN www.stat.math.ethz.ch HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; H010818) nokeepalive...
2004 Jan 06
0
bug report (PR#6394)
...ich HTTP_HOST www.stat.math.ethz.ch SCRIPT_URL /mailman/subscribe/r-help HTTPS on SSL_SERVER_I_DN_L Zurich HTTP_CONNECTION Keep-Alive PATH_TRANSLATED /var/www/vhosts/sfs/htdocs/r-help HTTP_CACHE_CONTROL no-cache SSL_SERVER_S_DN_C CH REQUEST_URI /mailman/subscribe/r-help HTTP_ACCEPT application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* SSL_SERVER_M_SERIAL 07 SSL_SERVER_S_DN_CN www.stat.math.ethz.ch HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; H010818) nokeepalive...
2007 Jan 26
0
Problems with assert_select in integration tests
...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,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5", "REQUEST_METHOD"=>"GET"}, @output_hidden={"_session_id"=>"d0060c4ee33f3d58c0ef83bbfa107b6f"}, @stdoutput=#<StringIO:0x24771d0&g...
2016 Apr 29
4
Trying to build ices-0.4 on ubuntu and "libshout not usable"
...tivated perl script that gives me the basics. ----------------------------------------- OS ‪Ubuntu 14.04.4 LTS Environment Variables: CONTEXT_DOCUMENT_ROOT = /var/www/vhosts/cognisys.com/httpdocs CONTEXT_PREFIX = DOCUMENT_ROOT = /var/www/vhosts/cognisys.com/httpdocs GATEWAY_INTERFACE = CGI/1.1 HTTP_ACCEPT = text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 HTTP_ACCEPT_ENCODING = gzip, deflate, sdch HTTP_ACCEPT_LANGUAGE = en-US,en;q=0.8 HTTP_CACHE_CONTROL = max-age=0 HTTP_CONNECTION = keep-alive HTTP_HOST = 69.73.179.57 HTTP_UPGRADE_INSECURE_REQUESTS = 1 HTTP_USER_AGENT = Mo...
2006 Apr 25
8
Does Rails suppports XHTML for views for inline SVG''s?
I have following piece of code(which when saved in a file with .xhtml extension and opened in Mozilla 1.5.0.2 works fine); <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg"> <head> <title>SVG within XHTML Demo</title> </head> <body> <p> You can embed SVG into XHTML, provided that your