Tell me, there is a local server. With php I make requests, how can I catch these requests? Tried Charlie and Fiddler, they only see what's in the browser.

$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2); curl_setopt($ch, CURLOPT_TIMEOUT, 2); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_REFERER, ''); curl_setopt($ch, CURLOPT_USERAGENT, ''); $ss = curl_exec($ch); curl_close($ch); 
  • Details are needed: how exactly do you make requests, where and why do you want to catch them, what exactly do you want to receive, an example of your code, and what exactly does not work in it, etc. - Dmitriy Simushev
  • @DmitriySimushev Added a code, I want to see what sent curl, what headings, etc. - Big Tree
  • one
    try wireshark. - Vladimir Martyanov
  • Where do you want to browse? In php code or in a third-party application? - dlarchikov

1 answer 1

Configure in curl using a proxy that creates a fiddler. Most likely, localhost:7777 or localhost:8888 .