Displaying 20 results from an estimated 1000 matches similar to: ""end of file" error for "net/https""
2007 Jun 12
1
alias_method_chain and Class methods (a Ruby question)
Hello list,
I am trying to override the post_form method of Net::HTTP so that it
does something before actually doing the post. I tried the following
in environments/development.rb
module Net
class HTTP
alias_method_chain :post_form, :intercept
def post_form_with_intercept(url, params)
# Do something before post
logger.info(''About to post at
2006 Mar 19
1
Sending post request with post_form
Basically I have a controller with this:
@lang = params[''lang''] || ''en''
@errors = request.raw_post
@feed_stats =
Net::HTTP.post_form(URI.parse("http://www.google.com/tbproxy/spell?lang="
+ @lang), @errors)
render :text => @feed_stats
However whenever I run this I get an error message:
undefined method `post_form'' for Net::HTTP:Class
2010 Sep 01
4
NoMethodError: undefined method `force_encoding' for "Conten
Hi everyone!
Im trying to install mechanizer from
http://github.com/tenderlove/mechanize.
I`ve clone the project into /tmp folder. When I do rake inside the
folder /tmp/mechanizer it gives me this error:
mac159180:mechanize renatosis$ rake
(in /private/tmp/mechanize)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -w
-Ilib:bin:test:. -e ''require "rubygems";
2009 Jun 05
1
Slow/unpredictive response of post_form from rails lib
Hi friends,
I''m facing a very strange problem...
I consume a webservice from within my rails app. I''ve written a thin
wrapper around the webservice using Net::HTTP.post_form
However, when calling the API from within my controllers, the API calls
randomly fail, complaining about timeout.
But - when I wrote a simple iterative test (500 iterations), calling the
same webservice
2012 Feb 16
3
Mechanize::ResponseCodeError: 500
> Excuse me if my issue is a little bit application-specific. I need
> Mechanize to submit bunch of data from our server to an online reservation
> system. The url is https://secure.mdausa.org/donate/
> It works in my browser however using mechanize following error appears:
>
> /Library/Ruby/Gems/1.8/gems/mechanize-2.0.1/lib/mechanize/http/agent.rb:241:in
> `fetch'':
2010 Oct 18
2
httparty vs mechanize
Are these two competing gems?
Thanks!
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more
2011 Mar 16
19
Uninitialized constant Files::Magick -still around
Hi there,
I''m solving the problem about the plugin Magick. In my app in Gemfile
I''ve follwoing:
require ''rubygems''
require ''mongo''
require ''RMagick''
include Magick
and in a model Files:
class Files
def self.save(upload)
...
img = Magick::Image.read(''public/data/nature6.jpg'').first
end
end
2010 Jun 03
3
issue submitting a form
Hi. Recently I started rebuilding my old Mechanize script, which I
used to automatically log in to a certain site and retrieve files from
it. Old version worked great, however, when I did the update it
started complaining. Here''s the log of the error:
/Users/lukastolyarov/.gem/ruby/1.8/gems/mechanize-1.0.0/lib/mechanize/form/field.rb:30:in
`<=>'': undefined method
2008 Jan 14
3
Reading HTTP Request parameters
Hello
I''ve a client which send this request to a mongrel HTTPHandler :
res=Net::HTTP.post_form(URI.parse(''http://localhost:3000/test''),{"a"=>1,"b"=>2})
But in the handler I can''t read the parameters one by one, I can read
the entire String only :
class Serveur
class MyHandler < Mongrel::HttpHandler
def process(req, resp)
2010 Oct 15
3
Ruby as a web client
Hello,
I need to write a program that will talk http to some web
applications. I was thinking to use Rack. I am not sure what would be
a good way to do this. Is there a better or higher level gem that I
can use for this.
Thanks in advance!
Alex
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email
2012 Jan 26
1
[LLVMdev] How to get trace using llvm?
Hello,
I am trying to get the trace by running my sample program using llvm. I
was referring following link for lli:
http://llvm.org/releases/1.0/docs/CommandGuide/lli.html
after that I installed llvm and llvm-gcc. Here is the version detail:
tushar at tushar-mehta:~/NUS/os_project/tryout$ lli -version
Low Level Virtual Machine (http://llvm.org/):
llvm version 2.8 (Ubuntu 2.8-0ubuntu1)
2007 Jul 06
0
Removing One Element From a Serialized Form
Hi all,
I''m trying to serialize a form with the exception of one specific
element.
Serializing the form in a hash (without pulling out specific elements)
works:
<li>
<%= link_to_remote ''(Save)'', {:url => post_path(@post), :with => "$
(''post_form'').serialize(true)" }, :method => :put %>
</li>
The generated code
2009 Jul 09
3
before(:all) and nested contexts
On Thu, Jul 9, 2009 at 5:40 AM, Daniel Tenner<daniel.rspec at tenner.org> wrote:
> Hi all,
> Like everyone (?), I use nested contexts to keep my specs well organised and
> tidy.
> However, I have a problem. I have various sets of specs that needs to
> perform very time-expensive operations to set up the fixtures that will be
> examined in the tests. Two specific examples:
2018 Dec 12
2
[Bug 109025] New: Reset Button is not working properly.
https://bugs.freedesktop.org/show_bug.cgi?id=109025
Bug ID: 109025
Summary: Reset Button is not working properly.
Product: Mesa
Version: 18.3
Hardware: ARM
OS: Windows (All)
Status: NEW
Severity: major
Priority: high
Component: Drivers/DRI/nouveau
Assignee: tushar.matte07 at
2010 Feb 04
2
Encrypt a user password using "Authlogic"
Hi,
I have a csv file which have the user detail. I want to migrate this
information into the "users" table.
My application use "Authlogic" for user aunthentication so I have to
encrypt the password during migration. I have written the script which
is reading the csv file and adds the record into "users" table, it is
working fine. But I am not able to encrypt the
2010 Jun 07
3
Model validation giving problem
Hi,
I have a member registration form which takes a "Name", "Login",
"Password", "Confirm Password" and "Location". In the user model I have
added the validation
validate_uniqueness_of :login, validate_presence_of :password, :name,
:confirm_password.
When the member tries to register every thing working fine. I am using
same form for user to edit
2009 Mar 31
9
Application without database.yml
Hi,
I have created one application. In that application I am not using any
database.
Whenever I starting rails server it is giving me an error for
configuration of database.yml.
What should I do for this?
Thanks,
Tushar
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2009 Dec 24
2
Showing graphs on browser with gruff lib.
Hi,
I am using "gruff" lib for creating the graphs.
I have got the success to create the graph, but my problem is I don''t
want to store it, I want that they should be displyed on the browser it
self.
I have tried this:-
"
send_data(g.to_blob, :disposition => ''inline'', :type => ''image/png'',
:filename =>
2009 Apr 27
5
ruby jasper report
Hi,
I am trying to create a pdf using ruby jasper.
For this I am referring this url:-
http://oldwiki.rubyonrails.org/rails/pages/howtointegratejasperreports
I have done everything whatever is in that link.
Still I am not able to get the pdf. I am not getting any error in log
file. My log file is:-
"Processing AccountController#customer_report (for 127.0.0.1 at
2009-04-27 13:19:34) [GET]
2011 Mar 03
1
Cucumber not inserting record in db
Hi,
I am trying to learn Cucumber. I have followed the tutorial on
"http://www.ultrasaurus.com/sarahblog/2008/12/rails-2-day-3-behavior-driven-development/"
Everything is working fine but my problem is it is not inserting any
record in either development or test database.
Can anyone tell me IS it the behaviour of the Cucumber or Am I missing
something?
Thanks,
Tushar
--
Posted via