similar to: RestClient posting multipart issue - RestClient::Found Exception: 302 Found

Displaying 20 results from an estimated 500 matches similar to: "RestClient posting multipart issue - RestClient::Found Exception: 302 Found"

2011 May 06
3
RestClient send method?
Hey all, I see this line of code: RestClient.send(verb, url, parameters) Basically there''s two rails application that communicate with each other. RestClient is a rails gem. Here we send the get http verb and a url string comprising of the other application base url and append a query string to it consisting of the new user email that is being created. So if the arguments are these:
2014 Apr 17
0
RestClient::ResourceNotFound in UsersController#index
Hi, I am trying to implement Rest Api for a sample application for learning purpose. But when I try to make a "GET" request through the RestClient it is showing error as RestClient::ResourceNotFound in UsersController#index def index uri = "#{API_BASE_URL}/users.json" # specifying json format in the URl rest_resource = RestClient::Resource.new(uri, USERNAME,
2009 Oct 04
2
no such file to load -- restClient (MissingSourceFile) HELP
i don''t get what is going on here. if i run the restclient command that starts an irb with restclient it works fine but when i try to load it from environment.rb with require ''rest_client'' this is what i get... it''s driving me batty. /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'': no such file to load --
2011 Oct 07
1
403 Error Dont know whats wrong.
Hi, I am quite new to ruby and am programming an application to send sms using rest_client gem. I so far have code on one of my modules which tries to send an sms to a number. It gives the 403 error - RestClient::Forbidden in SMSController#index 403 Forbidden Rails.root: /Users/user1/Desktop/rails_projects/sms_app My code in the module looks as follows - before adding this code i had a simple
2012 Mar 28
0
Performance for SOAP and HTTP
Hi everyone, I hope someone can help me with the following problem. I want to issue SOAP request from rails to connect to a legacy system in the backend. First I tried savon as a SOAP client. Everything worked fine, but the performance was bad. The following code client = Savon::Client.new client.http.headers["Content-Type"] = "application/soap+xml; charset=utf-8"
2010 Jun 09
4
rails+sinatra sent image
Hi! I have simple rails application - users with name and avatar and in sinatra I want to create new user. form for new user <form action="/users/create" enctype="multipart/form-data" method="post"> <p> <label for="name">Name: </label> <input type="text" id="name" name="user[name]" >
2012 Mar 06
2
rails login page with basic authorization
i have 2 portal, one and two. The portal one have all apis, and the portal Two have the interfaces, Here just i am doing enter the username and password in the login page so that will go the method of Portal Two. Then it will pass the username and password of a method of Portal One, this is am doing here. My question is how to do the basic authorization for encrypt the username and password
2006 Apr 12
0
StringIO - getting filename for multipart form uploads?
All, When using multipart forms, sometimes the files come into the controller as StringIO objects. I assume that by the time I get a StringIO object, I can''t get the name of the file the way that I might be able to using File.original_filename, correct? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
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 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
2011 Feb 14
0
Overiding routes in rails3
I have typus and devise almost integrated. However I''m trying to overwrite the "Sign out" link with typus and redirect it to devise/sessions#destroy ---------------------- config/routes.rb ---------------------- 65 # Override typus TODO this does not work 66 delete "/admin/session(.:format)" => ''devise/sessions#destroy'', :as =>
2011 May 16
2
Cannot get multipart => true , running well in my form when using remote => true
I have a simple form , with a file field = form_for (Clip.new), :html => {:multipart => true} , :remote => true , do |f| = f.hidden_field :user_id, {:value => current_user.id} = f.text_field :name = f.text_area :description = f.file_field :image = f.submit I18n.t(:add) generating the html code <form accept-charset="UTF-8"
2006 Dec 21
1
dealing with multipart forms in a Mongrel::HttpHandler
Hi everyone, Is there an easy way to parse multipart form requests from within a Mongrel::HttpHandler subclass or do I need to break out RFC 2388 and a bunch of regexps? Thanks, Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20061221/9e756aa8/attachment.html
2006 May 04
0
Passing _session_id with multipart forms
The Macromedia Flash 8 FileReference.upload() function uploads files by sending a multipart POST request to the server. Unfortunately, there is a bug that prevents Firefox cookies from being sent along with the request, so a different Session is created. I''m having my Flash code use ExternalInterface to call a Javascript function on the page with the Flash movie. The JS function
2006 May 14
0
form_for and Multipart - Syntax?
I am trying to get into the habit of using form_for in my new applications but I can''t seem to figure out how to get it to make my form use multipart encoding. I''ve tried adding :multipart => true in various spots to no avail. The source reads like Greek to me. Can someone help out with the correct syntax, it''s not in the doco. Thanks.
2006 May 23
0
Does TMail support Nested Multipart Messages?
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: sample Type: application/octet-stream Size: 6906 bytes Desc: not available Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060523/c0e8fd84/sample.obj
2006 May 30
0
Fixing PUT to work with multipart messages
We recently wrote our API to be fully REST, and so user PUT for updates. The problem is, we need multipart requests, but there''s a bug in CGI, and it doesn''t work. The rails code as a fix for POST requests, but not for PUT requests. So we added PUT as well and it works great now. I posted this as a patch in trac (http://dev.rubyonrails.org/ticket/5235) so you can get it if you
2006 Apr 17
2
Email Multipart message
Hi, I use the multipart functionality from the action mailer. But when i send an html message, my outlook opens the mail and shows this: --mimepart_4443b76d12268_6f34..fdacc616831e6 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: Quoted-printable Content-Disposition: inline <!!Message> = = --mimepart_4443b76d12268_6f34..fdacc616831e6-- No html will appear. When
2006 Mar 06
0
fastcgi upload - multipart problem
Hi, I''ve got multipart request with 1 file upload form problem. I''m using suse 10 basic installation : -ruby 1.8.2, -rubyfcgi 0.8.6-5, -apache 2.0.54, -apache2-mod_fastcgi-2.4.2-4 When starting whith webrick, my application uploads files correctly.When using both cgi or fastcgi, browser runs forever with files greater than 5kb. fastcgi
2006 Mar 18
0
implicit template naming for multipart/alternative emails
Hello, I''ve been using edge rails for a while now and used the recipe from the new recipes book on using implicit file names for multipart/alternative messages. This seems to have recently broke. I''ve named by templates according to the book and the docs... # for example, if the following templates existed: # * signup_notification.text.plain.rhtml # *