search for: request_method

Displaying 20 results from an estimated 64 matches for "request_method".

2012 Nov 30
1
q@ request.request_method=='OPTIONS', ajax, post json
hi im reading through the topic above and trying to apply it to my app. as reference i found:http://leopard.in.ua/2012/07/08/using-cors-with-rails/ my prob is that i dont see the ''preflight'', meaning the first request prior the actual post, which should(?) deliver this: request.request_method==''OPTIONS'' the js code look like this: $.ajax ({ type: ''POST'', dataType: "json", crossDomain: true, url: "http://someserver/foo.json", data: {test:999}, in application_controller.rb i have this in a before filter: def cors p...
2006 Jun 16
0
rake spec controller test output hideus.
...=>"signup"}, @host="test.host", @cookies={}, @env={"REMOTE_ADDR"=>"0.0.0.0", "REQUEST_URI"=>"/user/signup?user=passwordnewpasswordloginnewbobemailnewbob%40mcbob.compassword_confirmationwrong", "SERVER_PORT"=>80, "REQUEST_METHOD"=>"POST"}, @path_parameters={"action"=>"signup", "controller"=>"user"}, @session=#<ActionController::TestSession:0x24d6a74 @attributes={"flash"=>{:warning=>"Signup unsuccessful"}}>, @request_uri=nil, @re...
2011 Aug 12
16
Rack content-length Rack::Lint::LintErrors errors with unicorn
Has anyone seen anything like this before? I can get it to happen all the time if I issue a HEAD request, but it only happens very intermittently on GET requests. I''m using Ruby 1.9.2p180. Any ideas on where to start debugging? 204.93.223.151, 10.195.114.81 - - [11/Aug/2011 21:03:50] "GET / HTTP/1.0" 200 37902 0.5316 app error: Content-Length header was 37902, but should be
2008 May 23
8
An issue for consideration
...to filter all requests which don''t use a standard http method. I''d like to suggest that in the next release of camping, we could do something like return unless [''GET'', ''POST'', ''DELETE'', ''HEAD''].include?(request_method), perhaps in the run method of camping. Or maybe we could raise an error. I''d also appreciate it if this update were deployed to rubygems servers without haste. I''ll be sure to post the service I write to work around this issue just as soon as I''m done writing it....
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 Nov 13
6
mongrel_upload_progress question/possible suggestion
...9;t know the exact path that I will b e uploading from, because of various routing info in my app. Thus, the ability for path_info to be a regex instead of just a string, thus allowing for: return unless params[''PATH_INFO''] =~ @path_info && params[Mongrel::Const::REQUEST_METHOD] == ''POST'' && upload_id = Mongrel::HttpRequest.query_parse (params[''QUERY_STRING''])[''upload_id''] Then I just update my handler like so: uri "/", :handler => plugin("/handlers/upload", :path_info => %...
2007 Jan 31
2
SystemStackError: stack level too deep
I''m testing the http module in console. BUt I got the following error. Anyone knows why? >> Net::HTTP.get_print ''www.google.com'', ''index.html'' SystemStackError: stack level too deep from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in `newobj'' from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
2006 Oct 28
5
RSpec, REST and different formats
...pec with RESTful rails apps? In my rails controllers I check request.respond_to? and render different views accordingly. I noticed that the get method in the rails plugin doesn''t accept headers: controller_mixin.rb line 92 def get(action, parameters = nil) @request.env[''REQUEST_METHOD''] = ''GET'' process action, parameters end Has anyone found a way around this? Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20061028/9c428c7c/attachment.html
2008 Feb 15
3
Ajax problem with rails 2.0.2 - frozen string?
...npack-2.0.2/lib/ action_controller/cgi_process.rb:78:in `request_parameters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/request.rb:287:in `parameters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/request.rb:22:in `request_method'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/request.rb:35:in `method'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/routing.rb:1483:in `extract_request_environment'' /usr/local/lib/ruby/gems/1.8/gems/ac...
2006 Jan 23
2
where are those defined?
Hi guys, anyone knows where are the get / put method you use in functional controllers test defined? I mean, grep cannot find them :-( I basically need the documentation for put. Thanks Duncan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060123/810be962/attachment.html
2007 Jul 31
2
Deploying with Merb
After a half day''s work I''ve created a Merb app to handle file uploads for a Rails app. In my dev environment, I changed the views in the Rails app to point to Merb on port 4000. But now I''m stuck trying to figure out how to deploy my new Merb app on a production server. Looks like originally this was handled with a rewrite rule
2008 Jun 21
5
RJS can't modify frozen string
...npack-2.0.2/lib/ action_controller/cgi_process.rb:78:in `request_parameters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/request.rb:287:in `parameters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/request.rb:22:in `request_method'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/request.rb:35:in `method'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/routing.rb:1483:in `extract_request_environment'' /usr/local/lib/ruby/gems/1.8/gems/ac...
2005 Dec 18
8
Invoking Rails from an API
...r( "" ); ::SetEnvironmentVariable( "SCRIPT_NAME", "/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; }...
2011 Oct 10
0
passenger , ruby on rails , apache 2.2.21
...nks AllowOverride None Order deny,allow Deny from none Allow from all </Directory> ProxyPreserveHost on RequestHeader set X_FORWARDED_PROTO "https" ProxyPass /images ! ProxyPass /stylesheets ! ProxyPass /javascripts ! RewriteEngine on RewriteCond %{REQUEST_METHOD} ^(HEAD|TRACE|DELETE|TRACK) [NC] RewriteRule ^(.*)$ - [F,L] RewriteCond %{REQUEST_METHOD} !^(OPTIONS|GET|POST)$ [NC] RewriteRule .* - [F,L] </VirtualHost> When I point my browser to "https://sampleapp/session/new" I get the login page that I expect. After giving the logi...
2014 Jun 16
1
OT - How to configure Apache2 server to receive Polycom log files ?
Hello, To troubleshoot Polycom phone provisionning (with an asterisk 11 box), I'm looking to enable HTTP log file upload ie the capability for Polycom phones to upload some data to a given HTTP server. At the moment, Polycom phones are downloading config files from an Apache2 HTTP server, thanks to a DHCP server configuration option bellow. option tftp-server-name
2007 May 30
0
Headers munged into RAW_POST_DATA
...ical+Transport+Service%0D %0AMedical+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...
2007 May 29
1
Headers munged into RAW_POST_DATA
...ransport+Service%0D% 0AMedical+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_SOFTWA...
2015 Aug 27
7
apache mysterious 404 error
...ex index.html AddHandler cgi-script .cgi Options -Indexes +FollowSymLinks +ExecCGI +Includes AllowOverride All Require all granted </Directory> ExpiresActive On ExpiresDefault "access plus 30 minute" RewriteEngine On RewriteCond %{REQUEST_METHOD} ^TRACE RewriteRule .* - [F] </VirtualHost> Thanks Tim -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
2008 Oct 11
5
Rails + Apache2 + Balancer Manager - PHP doesn't work
Hi I have a Debian Server and I managed that Ruby works with Apache2 and the Balancer Manager that listen to the Mongrel server. The Problem is that PHP files don''t work anymore. How do I have to configurate the Balance Manager that PHP is working again like without the Balance Manager? Greetings Andi -- Posted via http://www.ruby-forum.com/.
2004 Aug 24
1
error when unsubscribe (PR#7198)
...SSL_SERVER_S_DN_Email webmaster@math.ethz.ch SERVER_SOFTWARE Apache/2.0.48 (Unix) SSL_VERSION_INTERFACE mod_ssl/2.0.48 SCRIPT_NAME /mailman/options SSL_SERVER_A_KEY rsaEncryption SSL_SERVER_S_DN_ST Switzerland SERVER_SIGNATURE Apache/2.0.48 (Unix) Server at stat.ethz.ch Port 443 REQUEST_METHOD POST PATH_INFO /r-help SERVER_PROTOCOL HTTP/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 210587E0DB04D2F7DA...