title: SCAPY HTTP Request URL PCAP
body: <p>I am Trying to read a PCAP file using SCAPY with HTTP Layer request.and there is no output. the expected out put should be :</p>
  
  <p>"192.168.1.70 just requested a GET 192.168.1.68:8060/dial/dd.xml"</p>
  
  <p>Any help will be really appreciated. Thank You.</p>
  
  <pre><code>try:
      from scapy.all import * 
  except ImportError:
      import scapy
  
  try:
      import scapy_http.http
  except ImportError:
      from scapy.layers import http
  
  
  
  packet = rdpcap('lo.pcap')
  
  for p in packet:
      if not packet.haslayer('HTTPRequest'):
          return
      http_layer= packet.getlayer('HTTPRequest').fields
      ip_layer = packet.getlayer('IP').fields
      print('\n{0[src]} just  requested a {1[Method]} {1[Host]}{1[Path}]}'.format(ip_layer,http_layer))
  </code></pre>