Displaying 20 results from an estimated 600 matches similar to: "Reading HTTP Request parameters"
2007 Jan 23
4
Want feedback on Mongrel patch for handling partial PUT requests
By default, Mongrel will delete the HTTP request body and short
circuit calling any handlers if a request is interrupted or
incomplete. Unfortunately, this breaks any attempt to correctly
handle a partial PUT. (BTW, PUT is *way* more efficient for uploads
compared to POST which requires a MIME parsing step.) So, about a
month ago I wrote up some patches to Mongrel 0.3.18 that allowed
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 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 Nov 13
6
mongrel_upload_progress question/possible suggestion
Hey all,
First off, thanks to Rick Olson and whoever else was involved with this
plugin... It''s been amazingly easy to implement.
I''ve got a question about the path_info parameter, though... It seems that
unless the request PATH_INFO exactly matches the path_info passed in to the
plugin at inclusion, it won''t actually trigger Add and add the upload to the
list of
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,
2006 May 11
5
Mongrel 0.3.13 Pre-Release -- Out of Hibernation
Hello Mongrel Fans,
After about a Month of busy work, bad computers, moving half my house
across the country, and other dramas, I''m finally pushing out the next
release of Mongrel.
This pre-release has lots of little goodies and the start of some
documentation that should get everyone primed for the big "Mongrel 0.4
Enterprisey Edition 1.2" coming real soon now.
INSTALLING
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 May 30
0
Mongrel handler and root_handler
Hi
I am writing my own handler and seeing some strance behavior. Best is
describing by the following code
say I create mongrel server (see at the end of the email) and have one
handler for the root (so shoudl handle all request..)
To my surprise the @a in the following code in the Handlder is not the
object I expect but a hash containing the name {:a => <SomeObject
Instance> }
2006 Dec 05
7
mongrel and long lived connections
Hi,
I found this article
http://cyll.org/blog/tech/2006-08-09-themongrelcomet.html on mongrel
and COMET very interesting.
I ran the code, and it worked just as Christopher explained. The one
thing I don''t understand is why mongrel can only handle 1 connection
at a time. I thought that mongrel used a thread per connection.
It appears that each registered handler can only handle 1
2006 Oct 19
8
Mongrel::HttpHandlerPlugin
Hi,
I''m trying to write a file upload monitor for mongrel that uses
juggernaut to alert the browser of a change. I''m writing a plugin that
uses Mongrel::HttpHandlerPlugin but it looks like the only method that
gets called is process and that is only when the upload has finished.
I''m setting the following:
@request_notify = true
But I am still only getting process to
2006 May 23
8
Can Win32 service more than one rails request at a time?
Hi,
I am trying to run Mongrel on win32 to serve an internal rails application.
We are accessing legacy data, and some transactions can take 5 to 10 seconds. This is holding up every other request. The -n does not seem to be supported on Win32.
Am I missing something, or should I look elsewhere to serve my Rails app on win32?
Thanks,
Walt
--
No virus found in this outgoing message.
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 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
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 Sep 22
2
http helpers c extension
hi,
I rewrote escape, unescape, and query_parse in a C extension.
http://s3.amazonaws.com/four.livejournal/20070922/http_helpers.tar.bz2
Here are some sample benchmarks (the benchmark script is included in
the package)
user system total real
escape: Single long
Mongrel: 1.680000 0.020000 1.700000 ( 1.837793)
HttpHlp: 0.030000 0.010000 0.040000 ( 0.036590)
2006 Nov 27
5
win32 problems
I''m setting up a Rails app for a client that uses Windows. I''m
getting this error:
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.18/lib/mongrel/rails.rb:
32: uninitial
ized constant Mongrel::HttpHandler (NameError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:21:in `re
quire''
from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.18/bin/
2009 Feb 13
2
téléchargement et affichage d'image avec HtmlWindow
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
2012 May 30
3
raw input prompt
Hello,
I was wondering if there is a way to make a prompt for the user (exactly
like raw_input() in Python), the response to which can then be used as an
object.
Thanks,
Abir
--
View this message in context: http://r.789695.n4.nabble.com/raw-input-prompt-tp4631852.html
Sent from the R help mailing list archive at Nabble.com.
2006 May 07
1
Installing on OS X
Hi,
I''ve just installed Mongrel 3.12.4 on OS X, and had one little
difficulty: I kept getting an error message saying that HTTPHandler
didn''t exist, maybe it was Mongrel, I don''t remember. Turns out that
there was a lot more missing than that, so it doesn''t really matter.
What was happening is that http11 was not installing and the "require