Chilkat Upload for Ruby Released

Chilkat Upload for Ruby was released today. The upload class (CkUpload)
is freeware and runs on Win32 platforms. The Chilkat Upload class
provides
the ability to upload files over HTTP to a web server. It has the
following
features:

  • Synchronous and asynchronous uploads.
  • Abort capability for asynchronous uploads.
  • Progress monitoring for asynchronous uploads.
  • Add custom header fields to the multipart/form-data HTTP request.
  • Add name/value parameters to the multipart/form-data HTTP request.
  • Fetch HTTP response status code, header, and body.
  • Set timeout and chunk size.
  • Large files are uploaded in streaming mode to keep the memory
    footprint small and constant.
  • Upload to memory (to create a full multipart/form-data request in
    memory)
  • Transparent support for SSL will be implemented shortly.
  • Proxy support will be implemented shortly.

Examples are located here:
http://www.example-code.com/ruby/rubyupload.asp

More examples will be forthcoming, as well as reference documentation.

I am working on RHEL 5. I have to build a web automation framwork using
Ruby. when I am trying to read a XML file using Chilkat ruby I am
getting following error.

Ruby code where I am getting the error.

require ‘rubygems’
require ‘Chilkat’

xml = Chilkat::CkXml.new()
xml.LoadXmlFile(’/root/Desktop/XML/Vendor_Registration_Flow01.xml’)
@strContent = Chilkat::CkString.new()
@strTag = Chilkat::CkString.new()
@strXml = Chilkat::CkString.new()
@processNode = xml.SearchForTag(nil,“t:test_case”)

While running the code I am getting this message –

/root/Desktop/readxml.rb:14:in LoadXmlFile': Expected argument 0 of type CkXml *, but got Chilkat::CkXml #<Chilkat::CkXml:0x000000038e3... (TypeError) in SWIG method 'LoadXmlFile' from /root/Desktop/readxml.rb:14:in

Please help me in resolving the error.

Thanks.

On Mon, Aug 22, 2011 at 5:20 AM, Brajmohan S. [email protected]
wrote:

I am working on RHEL 5. I have to build a web automation framwork using
Ruby. when I am trying to read a XML file using Chilkat ruby I am
getting following error.
Chilkat is a commercial proprietary library. You really should be
contacting the software firm that writes that software.

For reading XML you may want to consider using Nokogiri or hpricot.
Nokogiri is faster, but can be harder to set up if you dont have
libxml present.

Andrew McElroy