search for: content_length

Displaying 20 results from an estimated 86 matches for "content_length".

2003 Apr 21
0
Patch for zero content-length
...tunately zero is also a valid value for Content-Length. The patch below attempts to address the problem. *** mbox-index.h.orig Tue Apr 15 09:04:02 2003 --- mbox-index.h Sun Apr 20 11:42:12 2003 *************** *** 19,24 **** --- 19,25 ---- struct istream *input; uoff_t content_length; int set_read_limit; + unsigned int content_length_good:1; }; int mbox_set_syscall_error(struct mail_index *index, const char *function); *** mbox-index.c.orig Mon Mar 24 05:52:44 2003 --- mbox-index.c Sun Apr 20 12:41:16 2003 *************** *** 264,277 ****...
2008 Jun 03
9
clients hang on large PUTs to Mongrel::HttpHandler-based web service
Hi folks, I have a problem with a storage web service our group wrote using Mongrel::HttpHandler We have a consistent problem when using http PUT to this service when the data is larger than about 4 GB. The web service actually retrieves and processes the data, but the clients hang - the TCP connection is still in the ESTABLISHED state on the client side, but the TCP session no longer exists on
2010 Dec 08
1
NoMethodError: `bytesize' for 200:Fixnum (with Rails-3.0.3)
...iews: 12.4ms | ActiveRecord: 0.0ms) [2010-12-08 16:38:49] ERROR NoMethodError: undefined method `bytesize'' for 200:Fixnum /opt/local/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/ utils.rb:240:in `bytesize'' /opt/local/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/ content_length.rb:22:in `call'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-3.0.3/lib/ action_view/template.rb:255:in `inject'' /opt/local/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/ content_length.rb:22:in `each'' /opt/local/lib/ruby/gems/1.8/gems/rack-1.2.1/...
2005 Feb 07
1
Remote MWI via IAX?
We have a couple of Asterisk boxes with one being the main system with everyone's voicemail and the other a slave used merely to link a couple of remote phones to the main system using IAX. How can one propagate message waiting indication from the main system to the remote phones? g.
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
2006 Jan 14
1
BUG: HTTP body content get parsed in PUT call
..._table[''RAW_POST_DATA'']. The latter will have the same problem. class CGI #:nodoc: module QueryExtension private def setup_raw_put_data stdinput.binmode if stdinput.respond_to?(:binmode) content = stdinput.read(Integer(env_table[''CONTENT_LENGTH''])) || '''' env_table[''RAW_PUT_DATA''] = content.freeze end def read_query_params(method) case method when :get read_params_from_query when :post read_params_from_post...
2007 Mar 16
0
cancel running request
Hi everybody, I''m making a plugin to limit the maximum request size (for file uploads). Instead of canceling the request after it''s completely in (with the method ''process''). I would like to cancel it based on the CONTENT_LENGTH in the method request_begins. Usability thingie ;-) how can i cancel the running request and send a response, instead of waiting? currently i have these 2 methods: def request_begins(params) return unless params[Mongrel::Const::REQUEST_METHOD] == ''POST'' req_size = par...
2005 Dec 18
8
Invoking Rails from an API
...uot;/MyTest" ); ::SetEnvironmentVariable( "REQUEST_URI", "http://localhost:3000/MyTest#index" ); ::SetEnvironmentVariable( "QUERY_STRING", "" ); ::SetEnvironmentVariable( "REQUEST_METHOD", "GET" ); ::SetEnvironmentVariable( "CONTENT_LENGTH", "0" ); //ruby_script("embed" ); //rb_load_file( "public\\dispatch.rb" ); rb_load_file( "public\\dispatch.rb" ); //ruby_exec(); ruby_run(); ruby_finalize(); return 0; } ==OUTPUT== ./public/../config/boot.rb:15:in `require'': no such...
2006 Mar 14
5
Apache2 + FastCGI + SSL: File upload fails with HTTPS
.../ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:22:in `process!? /var/www/familygrove/public/dispatch.fcgi:26 almost killed by this error My environment is Ubuntu 6.04, Ruby 1.8.2 and Rails 1.0.0. Here''s the HEAD from cgi.rb read_multipart function: def read_multipart(boundary, content_length) params = Hash.new([]) boundary = "--" + boundary buf = "" bufsize = 10 * 1024 # start multipart/form-data stdinput.binmode if defined? stdinput.binmode boundary_size = boundary.size + EOL.size content_length -= boundary_size...
2007 May 30
0
Headers munged into RAW_POST_DATA
...ortation Service\r\nMedical Transport Service\r\nMedical Transportation \r\nMedical Transport \r\nMedical Transportation Vans\r \nMedical 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....
2007 May 29
1
Headers munged into RAW_POST_DATA
...n Service\r\nMedical Transport Service\r\nMedical Transportation \r\nMedical Transport \r\nMedical Transportation Vans\r \nMedical 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...
2005 Sep 01
0
another assert/core with 1.0alpha1
...flags = 0 '\0', uid_broken = 0, from_offset = 0, body_size = 8816, offset = 36747, space = 0}, seq = 3, hdr_offset = 36747, body_offset = 37555, header_first_change = 779, header_last_change = 4294967295, header = 0xa20b0, hdr_md5_sum = "3\207I\234?\027\032P??C?e8?V", content_length = 18446744073709551615, hdr_pos = {754, 4294967295, 779, 766, 787}, parsed_uid = 13, last_uid_value_start_pos = 0, have_eoh = 1, need_rewrite = 0, seen_imapbase = 0, pseudo = 0, updated = 0, recent = 0, dirty = 0, imapbase_rewrite = 0, imapbase_updated = 0} (gdb) print *mail $2 = {uid = 8,...
2012 Mar 01
1
help stylesheet_link_tag
...39;' rack (1.4.1) lib/rack/lock.rb:15:in `call'' actionpack (3.2.1) lib/action_dispatch/middleware/static.rb:53:in `call'' railties (3.2.1) lib/rails/engine.rb:479:in `call'' railties (3.2.1) lib/rails/application.rb:220:in `call'' rack (1.4.1) lib/rack/content_length.rb:14:in `call'' railties (3.2.1) lib/rails/rack/log_tailer.rb:14:in `call'' rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'' /home/hj/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/ httpserver.rb:138:in `service'' /home/hj/.rvm/rubies/ruby-1.9.3-p...
2004 Aug 24
1
error when unsubscribe (PR#7198)
...TP/1.1 SSL_SERVER_S_DN /C=CH/ST=Switzerland/L=Zurich/O=ETH Zurich/OU=Seminar for Statistics/CN=stat.ethz.ch/emailAddress=webmaster@math.ethz.ch SSL_CIPHER RC4-MD5 SSL_SERVER_V_START Jan 9 12:56:05 2004 GMT SSL_SESSION_ID 210587E0DB04D2F7DAF67D64B4E9DDBA2F059B4E0671DD165F319D9EB1BB2057 CONTENT_LENGTH 83 SSL_CLIENT_VERIFY NONE SSL_SERVER_I_DN_ST Switzerland SSL_SERVER_S_DN_O ETH Zurich HTTP_REFERER https://stat.ethz.ch/mailman/listinfo/r-help, https://stat.ethz.ch/mailman/listinfo/r-help SERVER_NAME stat.ethz.ch REMOTE_ADDR 155.140.122.227 SSL_CIPHER_ALGKEYSIZE 128 SSL_SE...
2010 Jan 09
8
X-Forwarded-Proto / X_FORWARDED_PROTO
Eric, think I came across an issue with the parser in unicorn, with a request (due to 2 layers of nginx proxying) coming across with both a X_FORWARDED_PROTO and a X-Forwarded-Proto header. From the socket (in HttpRequest) - we get: X_FORWARDED_PROTO: http X-Forwarded-Proto: https which is parsed to HTTP_X_FORWARDED_PROTO"=>"http,https There was a passenger ticket that
2007 Feb 06
0
Question about file upload max size
Hi, We use merb for our file upload server. Everything is ok except file upload size limit, we want to cancel file upload process immediately once we learn that the size of upload files has exceed the max size limit. First, we try to hack MerbUploadHandler#request_begins(here, we can get CONTENT_LENGTH), but get trouble to cancel the upload process elegantly. Currently, we have no choice but to let browser to do the work. Our web client will query process info from server, and it know the max size limit, when it find that the size > allowed maxsize, it will cancel the upload task by IFRAM...
2005 Jun 26
0
Bug in Mailman version 2.1.5
...variables: Variable 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...
2005 Jan 05
1
3.0.x and AIX 5.3
...05 17:04:03.000000000 -0500 @@ -30,12 +30,12 @@ extern void print_title(char *fmt, ...); #endif -struct var { +struct cgi_var { char *name; char *value; }; -static struct var variables[MAX_VARIABLES]; +static struct cgi_var variables[MAX_VARIABLES]; static int num_variables; static int content_length; static int request_post;
2010 Mar 23
3
NoMethodError in AdminController#index
.../usr/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `each'' /usr/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `call'' /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/rack/log_tailer.rb: 17:in `call'' /usr/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/content_length.rb: 13:in `call'' /usr/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/handler/webrick.rb: 50:in `service'' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thr...
2007 Mar 25
1
Automatic HTTP Basic Authentication In Ruby on Rails
Hi, i need to access a url www.sometesturl3456.com/index.php It prompts HTTP Authentication window asking username and password. I have do automatic HTTP Basic authentication without manual entry of username and password, as i am reading the content of page in ruby in rails using: response = open("www.sometesturl3456.com/index.php").read Please help me to know how this can be done.