Displaying 20 results from an estimated 24 matches for "request_path".
2007 Mar 12
17
need help writing a plugin
...< GemPlugin::Plugin "/handlers"
include Mongrel::HttpHandlerPlugin
def initialize(options = {})
@docroot = options[:cwd] + "/" + options[:docroot]
end
def process(request, response)
# only stream flv files
unless File.extname(request.params[''REQUEST_PATH'']).downcase == ''.flv''
# somehow call the original process method?
end
...
end
How would I accomplish this?
Jeroen
2006 Aug 08
0
0.3.13.4 Pre-Release -- Almost Ready
...the way you start it, tests for the error, then
stops mongrel.
CHANGE LOG
Knocked out a bunch of bugs people reported so far:
* Makes Mongrel act like WEBrick re: REQUEST_URI, PATH_INFO,
SCRIPT_INFO, and QUERY_STRING. This should fix redirects, but in order
to make it work I''ve added REQUEST_PATH as well which is technically
PATH_INFO+SCRIPT_INFO.
* Mongrel now includes *all* of the requested URI even if Mongrel
doesn''t have a clue what it should do with it. Let''s hope we don''t see
tons of requests for proxy crap (like * and full hostnames) to Rails
apps. Could...
2007 May 30
0
Headers munged into RAW_POST_DATA
...l+Transportation+%0D%0AMedical+Transport+%0D%0AMedical
+Transportation+Vans%0D%0AMedical+Transport+Vans%0D%0AMedical+Patient
+Transportation+%0D%0AMedical+Patient+Transport%0D%0A&ad_keyword
%5Bbroad_keywords%5D=
* REMOTE_ADDR : xx.xxx.xxx.xxx
* REQUEST_METHOD : POST
* REQUEST_PATH : /ad_keywords/new
* REQUEST_URI : /ad_keywords/new?cid=7&ad=5&ct=
* SCRIPT_NAME : /
* SERVER_NAME : foo.com
* SERVER_PORT : 80
* SERVER_PROTOCOL : HTTP/1.1
* SERVER_SOFTWARE : Mongrel 1.0
Parameters...
2007 May 29
1
Headers munged into RAW_POST_DATA
...sportation+%0D%0AMedical+Transport+%0D%0AMedical
+Transportation+Vans%0D%0AMedical+Transport+Vans%0D%0AMedical+Patient
+Transportation+%0D%0AMedical+Patient+Transport%0D%0A&ad_keyword%
5Bbroad_keywords%5D=
* REMOTE_ADDR : xx.xxx.xxx.xxx
* REQUEST_METHOD : POST
* REQUEST_PATH : /ad_keywords/new
* REQUEST_URI : /ad_keywords/new?cid=7&ad=5&ct=
* SCRIPT_NAME : /
* SERVER_NAME : foo.com
* SERVER_PORT : 80
* SERVER_PROTOCOL : HTTP/1.1
* SERVER_SOFTWARE : Mongrel 1.0
Para...
2010 Dec 01
6
Mongrel, .htaccess, cpanel, rewrite, Mongrel::HttpParserError
...ww.xyz.com/\r\nCookie:
_XYZ_session=BAh7BjoPc2Vzc2lvbl9pZCIlOTZlZTVmMjUxOGE3YmIwMGEzNTQ5M2QzZDYwMDI4NmE%3D--fbeb1fb7b16f82da9485523bb84ad3b60fd8d6dc\r\nMax-Forwards:
10\r\nX-Forwarded-For: 98.245.93.82\r\nX-Forwarded-Host:
www.xyz.com\r\nX-Forwarded-Server: xyz.com\r\n\r\n"
---
PARAMS: {"REQUEST_PATH"=>"/images/Logo", "REQUEST_URI"=>"/images/Logo",
"REQUEST_METHOD"=>"GET"}
- - - - - - - - -
I don''t even know where to begin to look to solve this problem so I
would appreciate any pointers.
Am I missing some route.rb state...
2008 Apr 17
0
Error log, when using apache2.2.x modproxy with mongrel
...;"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.testkoji.com", "REQUEST_PATH"=>"/test/show",
"HTTP_ACCEPT_CHARSET"=>"Big5,utf-8;q=0.7,*;q=0.7",
"HTTP_VERSION"=>"HTTP/1.1", "HTTP_X_FORWARDED_SERVER"=>"www.testkoji.com",
"REQUEST_URI"=>"/test/show", "HTTP_X_FORWA...
2007 Oct 27
2
render_with_no_layout cause by Pingdom
...HTTP_HOST : dingbat.esseff.org
* HTTP_USER_AGENT :
Pingdom.com_bot_version_1.4_(http://www.pingdom.com/)
* HTTP_VERSION : HTTP/1.0
* HTTP_X_FORWARDED_FOR: 70.87.224.74
* HTTP_X_REAL_IP : 70.87.224.74
* PATH_INFO : /
* QUERY_STRING : pingdom=true
* REMOTE_ADDR : 70.87.224.74
* REQUEST_METHOD : GET
* REQUEST_PATH : /
* REQUEST_URI : /?pingdom=true
* SCRIPT_NAME : /
* SERVER_NAME : dingbat.esseff.org
* SERVER_PORT : 80
* SERVER_PROTOCOL : HTTP/1.1
* SERVER_SOFTWARE : Mongrel 1.0.1
Anybody any ideas?
Thanks
Joerg
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~-...
2010 Mar 23
7
redirection in format.json ...
I have presently a render :json which modify the current page
if @request.save
format.html { redirect_to(@request) }
format.json { render :json => { :result => ''success'', :request
=> request_path(@request) } }
....
but I would like rather to redirect to an index page
I wrote this but it doesn''t redirect ...
format.json { redirect_to requests_url }
what should I write to redirect correctly to an html page ?
thanks for your help
erwin
--
You received this message beca...
2007 Oct 01
1
Getting started on win32 - without Rails.
Hi,
I''m trying to get started developing my first ruby-powered web-app. I wont
be using Rails for this, at least I don''t see any reason why I should.
However, the "getting started" sections in the documentation only shows
you how to start a Rails application.
My mindset comes from PHP/JSP-type languages where you embed code into
HTML. It seems the way to do this with
2010 Jun 02
8
Read error: #<TypeError: can't modify frozen string> raised from HttpParser
Hey guys,
Started running unicorn in a production server like two weeks ago.
It''s been running smoothly, but looking at the logs found 44
exceptions like this:
E, [2010-06-02T16:17:15.117071 #22680] ERROR -- : Read error:
#<TypeError: can''t modify frozen string>
E, [2010-06-02T16:17:15.117270 #22680] ERROR -- :
2010 Dec 03
1
ERROR: Failed to build gem native extension.
...c:77: error: ?struct RString? has no member named ?len?
http11.c: In function ?request_uri?:
http11.c:102: warning: format not a string literal and no format arguments
http11.c: In function ?fragment?:
http11.c:113: warning: format not a string literal and no format arguments
http11.c: In function ?request_path?:
http11.c:124: warning: format not a string literal and no format arguments
http11.c: In function ?query_string?:
http11.c:135: warning: format not a string literal and no format arguments
http11.c: In function ?header_done?:
http11.c:172: error: ?struct RString? has no member named ?ptr?
http11.c...
2006 Sep 29
5
Request URI Length Override
Please help,
Does anyone know how to override the Mongrel request URI limits
built in? I know it was set at a 512 byte limit, but my application
will not work with this in place.
Why do I need a larger limit? I''ve written a rails application
that uses a bookmarklet to send large amounts of data from site to
site. The only way to do this is (and keep it cross browser
2011 Aug 16
6
Unicorn logging in production env
Hi All, as I can see on
https://github.com/defunkt/unicorn/blob/master/lib/unicorn.rb#L53
the?Rack::CommonLogger used only in development env and in weird evn
called "deployment".
Any chance to add "production" to this case?
Serg Podtynnyi
2006 Oct 13
4
Broken installation of mongrel 0.3.13.4 on Sun OS 5.9
Hi,
Anyone succeeded in installing Mongrel on Sun Solaris? It looks like the
installation is broken. I have started using Mongrel recently and not sure
where to look when something is missing.
First the file http11.so was not installed in
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib
I''ve resolved that and when tried to start mongrel from the command line I
received the
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 Jan 14
29
Ebb Web Server
Hello Mongrel Users,
I''m writing a web server called Ebb. It''s written in C, makes use of
the Mongrel HTTP parser, and uses libev its event loop. The goal is to
be small, fast, and language independent server that can host web
frameworks. I have written a small Ruby binding which provides a Rack
handler - this will allow Ebb to host Rails, Merb, and other Ruby
frameworks. In the
2006 Aug 24
3
Mousehole stuff
Hey everyone,
I''m using mousehole for the first time today (love the artwork, btw) and I
seem to be having problems with Camping and Markaby. When I go to the Apps
page I get:
Camping Problem! MouseHole::Controllers::RApps.GET TypeError
/Users/tzaharia/Sites/mouseHole/lib/mouseHole/views.rb:78:in `+'': can''t
convert String into Array:bla bla bla...
The line in question
2007 Jun 28
1
DRb server crashing
...TP_X_FORWARDED_HOST : 75.126.217.82
* HTTP_X_FORWARDED_SERVER: www.jesse-grosjean-temp.com
* PATH_INFO :
/forums/writeroom/topics/18_WR_1_document_model/comments
* RAW_POST_DATA : [FILTERED]
* REMOTE_ADDR : 213.185.4.64
* REQUEST_METHOD : POST
* REQUEST_PATH :
/forums/writeroom/topics/18_WR_1_document_model/comments
* REQUEST_URI :
/forums/writeroom/topics/18_WR_1_document_model/comments
* SCRIPT_NAME : /
* SERVER_NAME : 127.0.0.1
* SERVER_PORT : 40860
* SERVER_PROTOCOL : HTTP/1.1...
2012 Apr 12
8
Background jobs with #fork
Hi
I''ve migrated from Passenger to Unicorn about a week ago. It''s great.
Great transparency and management, thanks for this great software!
A few of my Rails applications start background jobs using
Kernel#fork. Of course, the ActiveRecord connections are closed and
reopened again in the parent and child processes. The child process
also does its job.
Unfortunately, it seems
2007 Mar 07
10
Long URLs - New to Mongrel
My rails web app (rails 1.2.1) uploads an image from a Java applet by
encoding it into the URL. This works fine when I''m using Webrick. I''m
trying out Mongrel today, and I''m getting an error in Safari that
says ?lost network connection? (NSURLErrorDomain:-1005). I get
something similar in Firefox. Is there a way to make Mongrel accept a
really long URL like