Displaying 7 results from an estimated 7 matches for "httputil".
Did you mean:
httputils
2009 Sep 25
0
WWW::Mechanize and Rails console not playing well
...rm, search_form.buttons.first)
ArgumentError: one hash required
from /home/jwoods/NetBeansProjects/activista/vendor/rails/
actionmailer/lib/../../actionpack/lib/../../activesupport/lib/
active_support/core_ext/string/interpolation.rb:85:in `%''
from /usr/lib/ruby/1.8/webrick/httputils.rb:352:in `_escape''
from /usr/lib/ruby/1.8/webrick/httputils.rb:352:in `gsub''
from /usr/lib/ruby/1.8/webrick/httputils.rb:352:in `_escape''
from /usr/lib/ruby/1.8/webrick/httputils.rb:370:in
`escape_form''
from /usr/lib/ruby/1.8/www...
2010 Mar 05
1
WEBrick 500 error only with https
...ig/certs/server.key").read),
:cert => OpenSSL::X509::Certificate.new(
File.open(RAILS_ROOT +
"/config/certs/server.crt").read),
:server_type => WEBrick::SimpleServer,
:charset => "UTF-8",
:mime_types => WEBrick::HTTPUtils::DefaultMimeTypes,
:debugger => false
}
ENV["RAILS_ENV"] = OPTIONS[:environment]
RAILS_ENV.replace(OPTIONS[:environment]) if defined?(RAILS_ENV)
require RAILS_ROOT + "/config/environment"
require ''webrick_server''
OPTIONS[''working_directory...
2006 Feb 12
0
problem serving files which start with newlines
...l there
header, body = extract_header_and_body(data)
print body <- linefeeds gone
[...]
end
[...]
def extract_header_and_body(data)
data.rewind
data = data.read
raw_header, body = *data.split(/^[\xd\xa]+/on, 2) <- probably the
problem
header = WEBrick::HTTPUtils::parse_header(raw_header)
return header, body
end
--
Posted via http://www.ruby-forum.com/.
2006 Sep 06
1
WEBrick mime-type configuration
Does anyone know how I can get at the guts of how WEBrick handles
mime-types?
I have a suspicion that it is returning an incorrect mime-type in a
response.
Wes
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2006 May 02
2
Mechanize and file_column
Hi all,
Has anyone successfully used WWW::Mechanize with file_column? I''m
trying to upload a bunch of images to a custom controller, and
something''s going wrong with the parameter names.
Using a noddy controller :create action that looks like this:
def create
render :text => params.inspect
end
I get this result from a manual upload from a form:
2010 Oct 13
2
total newbie issue with Cortado player using new java 1.6.0_22
...n.getNewHttpClient(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
at com.sun.deploy.net.DownloadEngine.isUpdateAvailable(Unknown Source)
at com.sun.deploy.cache.DeployCacheHandler....
2006 Dec 06
17
[SURVEY] MIME types questions for Mongrel 1.0 RC1
I need people to answer a survey super quick for the next little release of Mongrel. Basically, nobody ever agrees on mime types, especially defaults, which is why Mongrel has none and you set your own. Sometimes people just refuse to set their own and want Mongrel to do everything for them, but if that happens then people will complain about the defaults.
Damned if I do, damned if I