similar to: Problem w/ HTTP POST

Displaying 20 results from an estimated 100000 matches similar to: "Problem w/ HTTP POST"

2008 Apr 23
0
Upload a file using Net:HTTP multipart post or ActiveResource
Hi Guys, I am trying to upload a file to a rails server using a ruby script. http://pastie.org/185380 I verified the parameters of the Net:HTTP post request and they seem to be right. However the recipient, mongre,l shows following message in console and the parameters sent, the file data, is all corrupted. oh and one very weird thing happened. the console running mongrel looks like following
2011 Aug 19
1
How to post a file via HTTP as multipart/form-data to Facebook?
I would like to post a new photo to a user using `Net::HTTP::multipart` from a Heroku application to Facebook. I have the following JSON object: {"message"=>"My message", "image"=>#<ActionDispatch::Http::UploadedFile:0x00000004242490 @original_filename="neEZYMAnBI.jpg", @content_type="application/octet-stream",
2008 Jan 14
5
Only "form_tag" support uploading file?
Hi, there: I wanna use plug-in "file_column" to upload image to the server. In my test app, the view is as follow & it works well: ==================== <h1>New entry</h1> <%= error_messages_for ''entry'' %> <% form_tag ''create'', :multipart => true do -%> <p><label
2008 May 01
1
Strategy for importing temporary .csv file?
For some reason, I''ve posted this question to this forum 4 times now and it never appears in the daily consolidated email I get daily? I''ve written a routine allowing the client user to declare where their .csv import file resides and then send it to the server to import the many rows into an existing model table, and then throw it away. I''ve imported many graphic files
2007 Feb 05
0
superclass mismatch for class OrderedOptions (TypeError)
ngw@adreadedsunnyday ~/projects/hotchalk$ script/server ./script/../config/boot.rb:28:Warning: require_gem is obsolete. Use gem instead. /opt/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:606: superclass mismatch for class OrderedOptions (TypeError) from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/ custom_require.rb:27:in `gem_original_require'' from
2009 Mar 26
1
Turning off the layout in ActionMailer?
So I''m happy to see that ActionMailer supports layouts now (it may have for a while, but I just now realized it). But I don''t see a way to turn them off selectively or by multipart type. For example, if I have a layout that''s really simple in "layouts/ email.html.erb": <div style="border:1px solid gray"> <%= yield %> </div> I
2008 Jun 11
1
multipart/form-data
Hi, I`m new for here. Im trying to use prototype in my administration console, but, i need to upload 2 files, my server application requires that form be encoded using multipart/form-data, how can i do this using prototype? (i can'' submit the form, because the page cannot be refreshed) Best Regards, Ari Zanuto --~--~---------~--~----~------------~-------~--~----~ You received this
2008 Sep 02
2
Actionmailer - Multipart and Outlook?
Hi, I''m having issues with getting a consistent result with the emails I am sending using Actionmailer. Problem: Emails that I send with plain text, rich text, and attachments do not display the same results across GMail, Yahoo, Outlook and Thunderbird. Scenario: I am sending an email with text/plain, text/html, and 2 attachments using the code below, and I''ve specified the
2006 Sep 19
1
File upload problem
Ok, I''ve got a problem with uploading files larger than 65999 bytes (exactly - took me a pretty a long time to determine this limit ; dichotomy isn''t a very fast method you know). Above this size, my file isn''t event sent to the server since the connection is reset before the upload actually begins. At least, so it is in Firefox and IE ; in Safari, the page loading
2004 Feb 23
1
HTTP Post connections in R
Hi, Is there any existing functions to open an HTTP connection and HTTP POST some R data? like <form method="post" enctype="multipart/form-data"> etc. </form> but within R. Thanks, ===== Nathan Whitehouse Statistics/Programming Baylor College of Medicine Houston, TX, USA nlwhitehouse at yahoo.com http://rho-project.org: rho- open source
2009 Apr 07
0
Net:HTTP post (to rails) example?
Hi all, I''ve got a little remote uploader app (written in Ruby Shoes) that uses Mechanize to create a new object (I think mechanize works by submitting an http form). I''d like to take Mechanize out of the equation and do a straight HTTP POST (authenticated).. but I''m having problems with how to manage the fact that my object has 2 files in it ... what is the syntax for
2009 Jan 29
0
Net:HTTP.post returns an Array
I was wondering if anyone has run into this problem. I post using a Net::HTTP object and instead of getting Net::HTTPResponse object, the server returns an Array causing an error since an we typically attempt to read the body of the Net::HTTPResponse object. Does anyone know why this is occurring? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you
2006 Nov 30
0
Query string based on the selection in HTTP POST
I want to generate the query string based on the options selected. For example it could be www.test.com/search?id=1 or www.test.com/search?id=1&zip=60008. How could I achieve this using http::POST? I tried the following, which didn''t work url = "{''id'' => 1, ''zip'' => 60008}" res =
2007 Apr 24
1
Testing for multipart form uploads
Hi, I''m trying to do integration tests that require uploading files via multipart posts. Have seen a very similar discussion, but cannot get it to work. Maybe, it''s out of date now with Rails 1.2.3: http://groups.google.ca/group/rubyonrails-talk/browse_thread/thread/fdfd2c040a2425f4 >From what I understand, fixture_file_upload''s output is translated a String.
2008 Apr 25
2
multipart form_tag
I''m new to ruby, working on the book from Christian Hellsten & Jarkko Laine writen for RoR 1, so I had to adapt for RoR 2. I got the error : undefined local variable or method `multipart'' for #<#<Class:0xb714d388>:0xb714d360> Code : 1: <h1>Editing book</h1> 2: 3: <% form_tag( {:action => ''update'', :id => @book}, multipart
2007 Jan 26
1
File upload problem with enctype
Hi All, I''m having a problem with a simple file upload page. I''ve narrowed it down to the enctype attribute of the form tag. Here''s my form: <form action="/app1/gpxdata/upload_gpxfile" method="POST" enctype="multipart/form-data" > <input type="file" size="50" id="gpxfile" /> <input
2009 Mar 27
0
ActionMailer multipart: html, plain and attachment?
Has anyone gotten emails to work where you specify the HTML and the plain text alternatives, but also include an attachment? Reason I''m asking: I''m sending out event notices, styled as HTML but with a plain text alternative. I also want to attach the .ics file. For some reason, I can''t get this to work. If I explicitly put in "multipart/mixed" (to support the
2007 Mar 11
4
Faking it... import local files into attachment_fu
Hello, I''m working on an import utility that will match the functionality of uploading an object of a model that uses attachment_fu for thumbnailing, etc. Rather than uploading the file via a form, I want to populate the params[:image][:uploaded_data] with data from a file already on the server''s file system. So far, I''ve been able to copy to an instance of Tempfile
2008 Apr 19
0
http://groups.google.co.il/group/rubyonrails-talk/post?hl=iw
Hi I want to show product prices in many currencies Is there a way to import Exchange rates automatically? Thanks ErezĀ  --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe
2009 Mar 18
1
Ajax file upload with remote_form_tag
when I tried below, it worked <form target="upload_iframe" action="/profile/validate_charts_file" id="upload_charts" method="post" enctype="multipart/form-data"> <input type="file" name="charts_file" id="filename" /> <input type="button" name="submit"