0

I'm trying to send http data over a custom made pcap.net based tcp client.

Normally, when I send request via browser, in wireshark it looks like this:

enter image description here

However, when I send the same data over TCP myself, in wireshark the request looks like this:

enter image description here

and the server does not respond properly to it.

I'm attaching the data to TcpDatagraw via PayloadLayer, but it seems that something is missing.

What should I change so this works properly?

Mike Pennington
  • 41,899
  • 19
  • 136
  • 174
Arsen Zahray
  • 24,367
  • 48
  • 131
  • 224

1 Answers1

1

Try appending 2 CRLFs (\r\n\r\n) at the end of the HTTP data

bcmacariola
  • 106
  • 2
  • 15