search for: raw_post_data

Displaying 13 results from an estimated 13 matches for "raw_post_data".

2007 May 29
1
Headers munged into RAW_POST_DATA
Hi, we''re seeing a really weird problem in our production environment. "Connection: Keep-Alive\r\n" is being pre-pended to the RAW_POST_DATA, which makes requests error out. This bug is seen infrequently and *seems* to be browser-related, although I can''t reproduce it using the browser reported in HTTP_USER_AGENT. Set up is a hardware load balancer (NetScaler) -> mongrel_cluster 0.2.1/mongrel 1.0 Has anyone else seen...
2007 May 30
0
Headers munged into RAW_POST_DATA
Hi, we''re seeing a really weird problem in our production environment. "Connection: Keep-Alive\r\n" is being pre-pended to the RAW_POST_DATA, which makes requests error out. This bug is seen infrequently and *seems* to be browser-related, although I can''t reproduce it using the browser reported in HTTP_USER_AGENT. Set up is a apache 2.2 -> hardware load balancer (NetScaler) -> mongrel_cluster 0.2.1/mongrel 1.0 -> rail...
2007 Feb 08
0
RAW_POST_DATA not in header
Has anyone been able to successfully access the RAW_POST_DATA? I know Rails has a fix for this. Haven''t been able to do it in Merb. I tried doing "request.body.read" which gives nothing, however when I do request.body.length, I get a length over 2000. I tried accessing $stdin, however I can''t seem to get the darn data out of it....
2010 Apr 30
0
I need to save image from RAW_POST_DATA
I load an image with FLASH-module. So, it comes to the server as RAW_POST_DATA I need to save it in many sizes. When I loaded images in attach I used "paperclip". But I think, that in current situation "paperclip" and it''s "has_attached_file" is not suitable. -- You received this message because you are subscribed to the Google Groups...
2006 Jan 14
1
BUG: HTTP body content get parsed in PUT call
...d via PUT.\n"=>""} The content of the PUT-call "Hello, I am a test upload via PUT.\n" get parsed as a param key. I made the PUT call using curl -T test-file.txt ''http://localhost:3000/foobar/put_action?key1=value1'' From action_controller/cgi_ext/raw_post_data_fix.rb, the PUT method is handled the same way as POST, which would have the content body parsed for params. So, I made a patch by redefining CGI::QueryExtension#read_query_params Note that I have to put the body content into env_table[''RAW_PUT_DATA''] instead of env_table[...
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 A...
2007 Sep 01
2
Getting JSON from the body of a POST
I have a Flash application that is sending JSON data to a Rails app. I want to be able to read the JSON from the controller. Does anyone know where I can go to figure this out? I''ve Google''d around but can only find instances of converting to JSON, not the other way. Example: Flash -> Sends JSON -> Rails Controller receives JSON and converts it to a class -- Posted
2006 Jul 27
2
more on file upload
...rb def query_parameters (qs = self.query_string).empty? ? {} : CGIMethods.parse_query_parameters(qs) end def request_parameters if ActionController::Base.param_parsers.has_key?(content_type) CGIMethods.parse_formatted_request_parameters(content_type, @env[''RAW_POST_DATA'']) else CGIMethods.parse_request_parameters(@cgi.params) end end regards, On 7/26/06, Jonas Pfenniger <zimba.tm at gmail.com> wrote: > > File upload is implemented in Camping. I guess you can have some > problems if you''re not running Camp...
2005 Aug 23
8
Web Services testing... Agile Book p. 435
I am attempting to test the web services added during chapter 20 of the Agile book. The code as written in the book yields 2 errors: test_find_product_by_id(BackendControllerApiTest): XMLParserError: syntax error Anyone hit this yet and get it to work? Thanks. Ken _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2009 Mar 31
3
Accept POST data from external source?
Ok, this is harder than I thought. I''ve got a hunk of XML coming in from an entirely external source that I do not control (but another department in my company does, so it''s not like a giant security hole). I was hoping to just have them POST their data to me, and then I''d read the raw stream and parse it. I''m sure folks know what I ran into -- Invalid
2006 Jul 19
12
[Slightly OT] POSTing data to a Rails App
Hi, I have a Windows program that collects data and would like to store this data in a database that is usually accessed through Rails. It was recommended that I try to "POST" the data to the Rails application. I''m running into some problems trying to format my POST string for the application. I''m trying to learn by interfacing to the TODO application (Four Days
2007 Jun 28
1
DRb server crashing
...TML, like Gecko) Safari/419.3 * HTTP_VERSION : HTTP/1.1 * HTTP_X_FORWARDED_FOR : 213.185.4.64 * HTTP_X_FORWARDED_HOST : 75.126.217.82 * HTTP_X_FORWARDED_SERVER: www.jesse-grosjean-temp.com * PATH_INFO : /forums/writeroom/topics/18_WR_1_document_model/comments * RAW_POST_DATA : [FILTERED] * REMOTE_ADDR : 213.185.4.64 * REQUEST_METHOD : POST * REQUEST_PATH : /forums/writeroom/topics/18_WR_1_document_model/comments * REQUEST_URI : /forums/writeroom/topics/18_WR_1_document_model/comments * SCRIPT_NAME :...
2006 Apr 21
8
web services and dealing with before_filter
Hi all, I''ve got a Rails app with a ApplicationController that looks like this: class ApplicationController < ActionController::Base before_filter :authorize, :except => :login def authorize unless session[:user] flash[:notice] = "Please log in" session[:jumpto] = request.parameters redirect_to :controller =>