Re: What is the data-in packet format as passed by the debug callback?
Date: Tue, 4 Feb 2020 22:49:49 +0100 (CET)
On Tue, 4 Feb 2020, Lazareanu, Sorin (S.) via curl-library wrote:
> In tcpdump I need to identify the packets received(sent) via curl-library. I
> use the debug callback to get the data (data_in) from a HTTP transfer. Is
> there a data_in format that I can use to parse the data and get the sequence
> number or any another identifier?
The data you see there is the protocol data that libcurl sends and receives,
which is in the application protocol layer. That is, if you send HTTP you see
the HTTP transaction.
There are no "sequence numbers" or similar in HTTP, mostly just headers and
body.
If you want to capture "the whole shebang", consider using the SSLKEYLOGFILE
approach instead: https://ec.haxx.se/usingcurl/usingcurl-tls/tls-sslkeylogfile
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://www.wolfssl.com/contact/ ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2020-02-04