Brian Candler wrote:
> Here's a successful post, and only a single object is returned. What 
> does this show on your system?
> 
> ruby-1.9.2-p0 > res = nil; Net::HTTP.start("chart.apis.google.com",80) { 
> |http| res = http.post "/chart", 
> "cht=lc&chtt=This+is+|+my+chart&chs=300x200&chxt=x&chd=t:40,20,50,20,100" 
> }
>  => #<Net::HTTPOK 200 OK readbody=true>
> ruby-1.9.2-p0 > res["Content-Type"]
>  => "image/png"
> ruby-1.9.2-p0 > res.body.size
>  => 7094

Brian thanks for reply. I tried the code above and am getting the same 
result as you.
I must apologize as I meant to say I was using require 'net/https' and 
doing a HTTPS call e.g. :
   resp, data = http.post(path, data, headers)

This is where the two objects are returned. Does 'net/http' and 
'net/https' behave differently?

-- 
Posted via http://www.ruby-forum.com/.