Displaying 20 results from an estimated 1200 matches similar to: "Mongrel handler and root_handler"
2008 Jan 14
3
Reading HTTP Request parameters
Hello
I''ve a client which send this request to a mongrel HTTPHandler :
res=Net::HTTP.post_form(URI.parse(''http://localhost:3000/test''),{"a"=>1,"b"=>2})
But in the handler I can''t read the parameters one by one, I can read
the entire String only :
class Serveur
class MyHandler < Mongrel::HttpHandler
def process(req, resp)
2007 Nov 20
4
Win32 service question
Hi All,
First, I''m new to the list, so I''d like to say hello to all fellow
mongrelists :)
Second, I''d like to ask you if there''s any way to make a simple mongrel
script run multithreaded?
No rails, just plain old
class MyHandler < Mongrel::HttpHandler
.
.
.
h = Mongrel::HttpServer.new("127.0.0.1", "80")
stuff.
Since win32 lacks fork,
2011 Apr 07
1
Adding text to page margin with lattice graphics
R: 2.12.1
OS X
Colleagues
I am working with lattice graphics for the first time and I am confused by some aspects of controlling these graphics. The most pressing issue is the following:
I can print the graphics without problems with the command:
print(MYFUNCTION(SOMEOBJECT)
However, I would like to add margin text (this terminology might not apply in this setting). I am able to do so with
2008 Jan 04
1
Howto write a mongrel handler for a CGI app using CGIWrapper
Hello,
Just for further reference in case of someone else want to do the same :
I wanted to write a mongrel for a CGI app :
[[[
require ''cgi''
require ''foo''
cgi = CGI.new
if !cgi[''uri''] || (cgi[''uri''] == '''')
Foo.error "URI argument is required"
end
uri = cgi[''uri'']
user =
2006 Sep 20
0
boy, that mongrel_upload_progress handler sucks!
I started actually using the upload progress handler, and noticed it
was leaking memory over time. Looking at the code, I noticed that
cancelled uploads weren''t being cleaned up. I bugged Zed about adding
a request_abort callback to handlers, but I found a simple way to
monkey patch that in:
# config/mongrel_upload_progress.conf
# yes, this file is being used with -S meaning
2008 Dec 12
8
cucumber features HTML output bug with more than 100 steps
I''m having the following problem:
With the format as html, the output of cucumber stops coloring successful
steps green after step #100. This last line in the HTML is:
<script type="text/javascript">stepPassed(100)</script>
Steps 101 -n are colored grey. The <body> tag is not closed but all steps
are displayed. When running with ''format
2008 Jun 05
2
Static files and mongrel
Hi
how does mongrel (without rails or merb) handles Static files? Do I
have to create a handler for static file handling?
Thanks
Emmanuel
2004 Feb 27
0
Re: [R] Is there a way to deactivate partial matching in R?
Dear Prof. Ripley,
Thank you for reminding me to the possibility to place the dots as first
argument.
If this is the solution against partial argument matching, we e.g. cannot
safely define a plot method which gives a demo plot in case of no object
(because we have to obey the class paramter conventions).
plot.someobject <- function(x=NULL, ...)
# another example would be paramter pairs
2012 May 22
1
Capturing signals from within external libs
I have a continuous loop running in an external library that I am calling
from C (R API). This loop is processing events in real time with the
possibility of significant lag between events.
When processing an event, I can make use of R_CheckUserInterrupt, but
while the external library code is waiting on a new event, I don't have an
opportunity to call this - my entry points are only on
2005 Jan 14
2
PHP+Oracle problem
Hi!
I have succesfully installed Oracle 9.2.0.4 on Centos. Everything is
fine with it.
Then I recompiled php-4.3.2-19.ent.src.rpm with
rpmbuild --rebuild --define 'oracle 1' php-4.3.2-19.ent.src.rpm
The compilation was successful, and I got the php and the php-oci8
rpms.
Then I installed them both. After this one running the following PHP
script:
<?php
$c =
2011 Jun 03
3
LMTP/Sieve/sendmail path
Hello,
I have a system using postfix multi instance feature.
The first, main postfix-instance is a nullclient as suggested by
http://www.postfix.org/MULTI_INSTANCE_README.html#split
The second instance is for real use. Postfix receive mail and handover them
to the dovecot lmtp server.
Thats working.
The lmtp server supports sieve. One account has activated a vacation rule.
So while delivering
2006 Dec 21
1
dealing with multipart forms in a Mongrel::HttpHandler
Hi everyone,
Is there an easy way to parse multipart form requests from within a
Mongrel::HttpHandler subclass or do I need to break out RFC 2388 and a bunch
of regexps?
Thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20061221/9e756aa8/attachment.html
2007 Nov 09
0
starting/stopping/registering Mongrel for HttpHandler
Hi.
I am currently learning Ruby and writing an app that simply uses
Mongrel''s HttpHandler class to create simple ruby servlets. At the end
I have been using code similar to the example in simpletest.rb:
h = Mongrel::HttpServer.new("0.0.0.0", "3000")
h.register("/test", SimpleHandler.new)
#h.register("/files",
2006 Jun 14
0
uninitialized constant Mongrel::HttpHandler (NameError)
I am trying to get a basic apache 2.0.55 + mongrel + rails app configuration setup and i keep getting this:
# mongrel_rails
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel/rails.rb:28: uninitialized constant Mongrel::HttpHandler (NameError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require''
from
2006 Apr 03
0
documentation question (ri and binding vs. get_binding vd getBinding)
I was reading up on ERB documentation and a snippet on rhtml
requiring the use of Object.get_binding caught my attention:
...
rhtml = ERB.new("someTemplate")
rhtml.run(someObject.get_binding)
...
Curious about tools I have at my disposal to learn more about things
I don''t know about Ruby, i typed the following into my DOS console:
ri get_binding
and got the following
2006 Nov 26
2
Writing a mod_put HttpHandler
I''m looking at writing a Mongrel handler that mimics the behavior of
the Apache mod_put [1]. It allows for the streaming upload of very
large (GB) files; it also supports resumable upload.
Before I get too involved, I''d like to ask if my reading of the
mongrel source code is correct, i.e. what I want to do isn''t
currently possible.
Looking at the class
2007 Jul 24
4
GemPlugin or Mongrel::HttpHandler subclass
Hey all
I am working with a technology standard (specific to the commercial
print industry) by which each element within the workflow has bi-
directional HTTP messaging. As each side needs a http server, I
thought I could either:
a) use a gem plugin to modify the behavior of mongrel
b) subclass Mongrel::HttpHandler
In short, its xml messaging between two points; each with a HTTP
client
2006 Dec 23
2
exception logging
Hi all-
I''m running mongrel with a tiny HttpHandler that hooks into a larger
library I''m working on. I''ve run into a snag with trying to debug
with it in that I''m not entirely sure how to get the exception logs
of errors that are raised.
All I get to stderr is this:
Fri Dec 22 17:16:14 -0800 2006: ERROR: Couldn''t find Models::Contact
without
2007 Nov 11
1
Passing from data via POST
Mongrel Users: How does the HttpHandler process() method deal with
data passed via POST?
The HttpRequest object captures all GET params appended to an URL, but
I just tried to
retrieve data passed via POST and it came up nil.
that is, I assumed the HttpRequest object contained the
param named in the html form and its value.But the POST passed params
are not found in the
request object.
Please
2006 Apr 07
1
HTTP 1.1 parser and non-standard request methods
hi,
i was thinking of creating a WebDAV plugin for mongrel, but ran into an
issue... the http parser hardcodes which request methods it considers
valid, so it blocks non-standard request methods like MKCOL, PROPFIND,
etc. i''m not familiar with the type of grammar being used for the
parser, but is it possible to defer the request method validation to a
later point, possibly inside the