Added support to retrieve pcap from API