Why doesn't wireshark recognize the http text in my tcp request?

566 Views Asked by At

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?

1

There are 1 best solutions below

0
On BEST ANSWER

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