Displaying 12 results from an estimated 12 matches for "restclient".
Did you mean:
testclient
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 th...
2011 Jul 13
0
RestClient posting multipart issue - RestClient::Found Exception: 302 Found
I thought I found how to post a file to my controller for PaperClip
attachment processing , but I am stuck with the the RestClient
processing
I am creating the file from the email attachment :
file = StringIO.new(part.decoded)
file.class.class_eval
{ attr_accessor :original_filename, :content_type }
file.original_filename = part.filename
file.content_type = part.mime_type
# then adding some parameters
fields_hash = {:clip =&...
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'':...
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, PASSWORD) # It
will create new rest-client resource so that...
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 enter number and enter message text boxes with the usual
edit/add/delete options.
require ''rubygems'...
2010 Jun 09
4
rails+sinatra sent image
...;Avatar: </label>
<input type="file" id="avatar" name="avatar" >
</p>
<input type="submit" name="Commit" value="Create">
</form>
My action in sinatra
post ''/users/create'' do
RestClient.post("http://localhost:3000/users",
:user=>params[''user''])
redirect ''/users''
end
I would like to sent file to server in this action.
So the question is: How to sent file as a param to server ?
I''m using mozilla firefox 3.6 so I can...
2012 Mar 06
2
rails login page with basic authorization
...t 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
res = RestClient::Resource.new url, :user_name => params[:name],
:password => params[:password]
response = res.post :content_type => :json, :accept => :json
Bcz now here the username and password is plain text. How to do the Basic
Authorization here...Any help would be appreciated: please giv...
2012 Mar 28
0
Performance for SOAP and HTTP
...client.wsdl.namespace = "http://excelsoap.local.com/"
response = client.request :wsdl, "validate" do
soap.version = 2
soap.body ={ "code" => "some data as value" }
end
requires about 1000 ms to execute.
So I switched to http and tried the Restclient. But the following code
api_call = RestClient.get ''http://localhost:3000/purchases''
requires about 1000 ms to execute as well.
My last try was a simple http request
net= Net::HTTP.new("127.0.0.1", 3000)
http = net.start
res=http.request(Net::HTTP::Get.new(&q...
2019 May 08
6
Firefox esr repackage
Hi everyone, I use firefox on centos 7 at work but due to the fairly well know extension signing problem, I cannot use ublock origin.
From what I can tell, the latest version of firefox in the updates repository is 60.6.1-1.el7.
It looks like Mozilla have just released firefox esr 60.6.2 which should fix the signing issue.
(see https://www.mozilla.org/en-US/firefox/60.6.2/releasenotes/)
Would it
2011 Feb 14
0
Overiding routes in rails3
...g/routes.rb
----------------------
65 # Override typus TODO this does not work
66 delete "/admin/session(.:format)" => ''devise/sessions#destroy'', :as =>
:destroy_user_session
However I keep getting Abstract::Controller:ActionNotFound exceptions when I
try
restclient delete http://localhost:3000/admin/session
Am I doing this the right way
--
Brad Phelan
http://xtargets.com
--
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-/JYPxA39Uh5TLH3Mb...
2011 Apr 20
1
Omniauth facebook authentication failure
I am using devise and omniauth for authentication. Wherever i click on
the facebook login button i get this warning msg.
******************************************
warning: peer certificate won''t be verified in this SSL session
******************************************
But now i get this error msg
*****************************************
OpenSSL::SSL::SSLError SSL_connect returned=1
2015 Jun 22
5
EFI: PXE: "My IP is 0.0.0.0"
Hello Gene,
thanks a lot for your patch! It doesn't work yet, but I have some more
information.
Before the patch, the boot sequence ended with the following:
NBP file download successfully.
Getting cached packet
My IP is 0.0.0.0
After the patch it ended with the following (note that the IP is the same
as the Station IP address):
NBP file download successfully.
LibLocateHandle returned