# File lib/flickr/upload.rb, line 114
        def send_form(form)
                headers = {"Content-Type" =>
                        "multipart/form-data; boundary=" + form.boundary}

                http = Net::HTTP.new('www.flickr.com', 80)
#               http.read_timeout = 900 # 15 minutes max upload time
                tries = 3
                begin
                        res=http.post('/services/upload/',form.to_s,headers)
                rescue Timeout::Error => err
                        tries -= 1
                        $stderr.puts "Timed out, will retry #{tries} more."
                        retry if tries > 0
                        raise err
                end
                return res
        end