tcpdump mailing list archives
Re: Assistance with Capturing cURL Request using tcpdump
From: Kaushal Shriyan <kaushalshriyan () gmail com>
Date: Tue, 1 Oct 2024 21:08:53 +0530
Thanks Michael On Tue, Oct 1, 2024 at 6:11 PM Michael Richardson <mcr () sandelman ca> wrote:
Kaushal Shriyan <kaushalshriyan () gmail com> wrote:
> I am using Postman to invoke a REST API call. Is there a way to
capture the
> cURL (https://curl.se/) request (including headers and body)
initiated by
> the Postman REST API client to the application server running RHEL
8.10 OS,
> and then to the backend server/system using tcpdump and analyze the
packet
> capture (.pcap) file in Wireshark?
Yes.
If it's HTTPS, then you will only see L3/L4 info, and no L6/7 like headers
and body.
> Headers: Contain metadata about the request, such as content type,
user
> agent, etc.
> Body: Contains the data that we want to send (if any). Typically
used with
> POST and PUT methods.
window1> tcpdump -i any -w myfile.pcap ip host postman-rest-api-client and
tcp port 80
window2> run test
window1> ^C
If this is on the same system, then maybe:
window1> tcpdump -i lo -w myfile.pcap tcp port 80
Thanks, Michael, for the quick response. Is there a way to capture and analyze *HTTPS* traffic since the data is encrypted? Please guide me. Thanks in advance. Best Regards, Kaushal _______________________________________________ tcpdump-workers mailing list -- tcpdump-workers () lists tcpdump org To unsubscribe send an email to tcpdump-workers-leave () lists tcpdump org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
Current thread:
- Re: Assistance with Capturing cURL Request using tcpdump Michael Richardson (Oct 01)
- Re: Assistance with Capturing cURL Request using tcpdump Kaushal Shriyan (Oct 01)
- Re: Assistance with Capturing cURL Request using tcpdump Michael Richardson (Oct 01)
- Re: Assistance with Capturing cURL Request using tcpdump Guy Harris (Oct 01)
- Re: Assistance with Capturing cURL Request using tcpdump Kaushal Shriyan (Oct 01)
