How do I modify a HTTP response packet with winpcap?
There are two problems here: What if content is encoded:gzip... Do I also need to change the header part to make the HTTP packet valid(checksums if any?) UPDATE Can someone with actual experience elaborate the steps involved? I'm using winpcap and bpf tcp and src port 80 to filter the traffic,so my job lies in this callback function: void packet_handler(u_char *param, const struct pcap_pkthdr *header, const u_char *pkt_data) WinPcap doesn't allow you to change a packet that was already sent. If the packet was sent, WinPcap won't prevent it from reaching its destination. If you want to send