lib/rcapr/rcaprapi.rb
# Given an id and filename, download the pcap to the particular file
Given an id and filename, download the pcap to the particular file
Given an id and filename download the pcap to the particular file
def download(id, filename)
    open(filename, "w").write(@res["/download?id=#{id}"].get)
    return filename
  rescue
    puts $!
    return nil
  end
def download ( id , filename ) open ( filename , "w" ) . write ( @res [ "/download?id=#{id}" ] . get ) return filename rescue puts $! return nil end
Given an id and filename, download the pcap to the particular file
Given an id and filename download the pcap to the particular file
id
<not_specific>
filename
<not_specific>