Displaying 16 results from an estimated 16 matches for "read_body".
2007 Aug 21
2
ActionPack raw_post_data_fix.rb#read_body bug with AMF data.
Hey Everyone,
I just found a slight problem with the "read_body" method in
raw_post_data_fix.rb.
This line:
# Fix for Safari Ajax postings that always append \000
content.chop! if content[-1] == 0
This causes problems with Flash AMF binary format. As AMF always appends
a \000 to the stream as well. I''m the developer over at RubyAMF and have
been...
2007 Jan 23
4
Want feedback on Mongrel patch for handling partial PUT requests
...l_requests? which is false
by default since most handlers do NOT want to handle a partial
request. Those that do can simply override this method in the
subclass. Used in HttpServer#process_client for determining if a
handler should get called.
2. class HttpRequest
Changes the logic in the #read_body method so it no longer deletes
the TempFile and sets @body to nil as a "signal" that the request was
interrupted. Adds a #attr_reader called #interrupted? for use outside
the class along with the appropriate initialization statement (this
is the new "signal"). Lastly, ad...
2006 Apr 18
3
install rail behind a proxy
...6:in `timeout''
from c:/ruby/lib/ruby/1.8/timeout.rb:55:in `timeout''
from c:/ruby/lib/ruby/1.8/net/protocol.rb:196:in `rbuf_fill''
from c:/ruby/lib/ruby/1.8/net/protocol.rb:128:in `read''
from c:/ruby/lib/ruby/1.8/net/http.rb:1735:in `read_body_0''
from c:/ruby/lib/ruby/1.8/net/http.rb:1697:in `read_body''
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:554:in `proxy_o
pen''
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:545:in `request
''
... 27 levels......
2008 Feb 15
1
Socket read returned insufficient data
...ls/
publication.rb:72: [BUG] Segmentation fault
ruby 1.8.4 (2005-12-24) [i486-linux]
INSTANCE #2:
Thu Feb 14 16:40:13 UTC 2008: Error reading HTTP body: #<Errno::EPIPE:
Broken pipe - /tmp/mongrel13937-1>
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel/
http_request.rb:87:in `read_body''
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel/
http_request.rb:55:in `initialize''
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb:149:in
`process_client''
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb:285:in
`run'&...
2006 Jul 27
0
how to render/send an incoming stream of data?
Let''s say I want to proxy a data stream through rails. I am
retrieving the data using HTTPResponse#read_body with a block. This
block gets chunks of the stream as it''s read off the socket. How do I
render/send this data to the end user without storing the whole file
in memory or disk?
thanks,
Tim
2005 Jul 28
0
IP Phone Advice ??
...tone. I find myself wanting to use the analog phones instead of the
IP phone, which drives me nuts :-)
So, I'm looking for advice on purchasing my next IP phone. Good voice
quality with the ablity to display CallerID on the LDC panel.
Thanks,
Jim
<http://duda.tzo.com:1024/webmail/src/read_body.php?passed_id=1305&ent_id=1&
mailbox=INBOX.Sent&sort=6&startMessage=1&show_more=0&passed_ent_id=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050728/3ec5a6d4/attachment.ht...
2007 Dec 16
0
Integration Testing - hang with post parameters
...gt; ''12111'', :password => ''hello'',
:password_confirmation => ''hello''}
When I do a ctrl-C I get a bit of a trace... any ideas?
from
/Users/rodney/code/puppy/vendor/rails/actionpack/lib/action_controller/cgi_ext/query_extension.rb:76:in
`read_body''
from
/Users/rodney/code/puppy/vendor/rails/actionpack/lib/action_controller/cgi_ext/query_extension.rb:88:in
`read_params''
from
/Users/rodney/code/puppy/vendor/rails/actionpack/lib/action_controller/cgi_ext/query_extension.rb:46:in
`initialize_query''
from
/System/L...
2009 May 20
1
activeresource-2.3.2 HTTPHeaderSyntaxError
...ent_name = "foo"
end
FooResource.create(:bar => ''baz'')
raises:
Net::HTTPHeaderSyntaxError: wrong Content-Length format
from /usr/local/lib/ruby/1.8/net/http.rb:1334:in `content_length''
from /usr/local/lib/ruby/1.8/net/http.rb:2210:in `read_body_0''
from /usr/local/lib/ruby/1.8/net/http.rb:2173:in `read_body''
from /usr/local/lib/ruby/1.8/net/http.rb:846:in `post''
from /usr/local/lib/ruby/1.8/net/http.rb:1053:in `request''
from /usr/local/lib/ruby/1.8/net/http.rb:2136:in `reading_body...
2008 Jul 08
8
POST instead of GET gives 404 (newbie)
Hi,
Using JRuby 1.1 and Rails 2.0, I created a small project in NetBeans
that allows me to generate a dynamic dialplan in XML. In case it
matters, I''m using builder-2.1.2 and activerecord-2.0.2.
Going in the browser to:
http://localhost:3000/routing/dialplan?Caller-Destination-Number=0
Does exactly what I want:
<document type="freeswitch/xml">
<section
2012 Jan 27
2
dealing with Encoding::UndefinedConversionError: "\xA2" from ASCII-8BIT to UTF-8
...:387:in `call_block''
from /usr/local/lib/ruby/1.9.1/net/protocol.rb:378:in `<<''
from /usr/local/lib/ruby/1.9.1/net/protocol.rb:88:in `read''
from /usr/local/lib/ruby/1.9.1/net/http.rb:2445:in `read_chunked''
from /usr/local/lib/ruby/1.9.1/net/http.rb:2419:in `read_body_0''
from /usr/local/lib/ruby/1.9.1/net/http.rb:2379:in `read_body''
from
/app/vendor/bundle/ruby/1.9.1/gems/mechanize-2.1/lib/mechanize/http/agent.rb:795:in
`response_read''
from
/app/vendor/bundle/ruby/1.9.1/gems/mechanize-2.1/lib/mechanize/http/agent.rb:267:in
`block in fe...
2006 Dec 07
6
Response To Form Submission Hanging
...from /usr/local/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill''
from /usr/local/lib/ruby/1.8/net/protocol.rb:86:in `read''
from /usr/local/lib/ruby/1.8/net/http.rb:2200:in `read_chunked''
from /usr/local/lib/ruby/1.8/net/http.rb:2175:in `read_body_0''
from /usr/local/lib/ruby/1.8/net/http.rb:2141:in `read_body''
... 7 levels...
from /usr/local/lib/ruby/gems/1.8/gems/mechanize-0.6.3/lib/
mechanize.rb:265:in `post_form''
from /usr/local/lib/ruby/gems/1.8/gems/mechanize-0.6.3/lib/
m...
2006 Mar 26
4
edge and 1.8.2/1.8.4 issues
I recently upgraded to 1.8.4 to try out mongrel, and so far have been in
a kind of hell where I can''t get my app working!
Currently running (or trying to run):
Ruby version 1.8.4 (i386-mswin32)
RubyGems version 0.8.11
Rails version 1.0.0
Active Record version 1.13.2
Action Pack version 1.11.2
Action Web Service version 1.0.0
Action Mailer version 1.1.5
Active Support version
2007 Aug 21
7
rails truncating raw_post_data?
Has anyone ever run into any problems with rails truncating
raw_post_data. My situation is this: I''m the developer for RubyAMF
(wiki.rubyamf.org). Which is a flash remoting application server. With
the rails plugin, it allows flash to talk to a controller and return AMF
data..
So long story short, the flash player makes a request to a rails
controller sending AMF binary format 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
2006 Oct 25
14
[SEC] Mongrel Temporary Fix For cgi.rb 99% CPU DoS Attack
This is important so please read this message very carefully.
There is a DoS for Ruby''s cgi.rb that is easily exploitable. The attack involves sending a malformed multipart MIME body in an HTTP request. The full explanation of the attack as well as how to fix it RIGHT NOW is given below.
Most of the work was done by Jeremy Kemper and Jamis Buck. They did all the work of building the
2007 Oct 15
9
POST with huge HTTP body
Hi,
I found the following page describing how to stream data from the
server to the client:
http://api.rubyonrails.com/classes/ActionController/Streaming.html
I want to do the opposite, streaming data from the client to the server,
letting the controller saving the data while it''s being received.
In particular, I want to upload large files to the RailsDav