Arsen Zahray
Arsen Zahray

Reputation: 25307

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

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?

Upvotes: 0

Views: 584

Answers (1)

bcmacariola
bcmacariola

Reputation: 106

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

Upvotes: 1

Related Questions