0

I'm doing a curl and I want to get more details about the errors, and for that I should use &debug=true but I dont know where to put it and how.

This is the curl that I'm using and which I want to get more details about the errors :

curl -s "localhost:9115/probe?target=http://linux.org&module=http_2xx" | grep -v '^#'
DazWilkin
  • 32,823
  • 5
  • 47
  • 88
  • You could try reference the [php docs](https://www.php.net/manual/en/function.curl-getinfo.php). If you cant get it to work this [post](https://stackoverflow.com/questions/3757071/php-debugging-curl) outlines how to use cURL correctly as well. – 0xe1λ7r Apr 08 '22 at 03:14

1 Answers1

3

& is a separator; add debug=true just like you added module=http_2xx.

curl -s "localhost:9115/probe?target=http://linux.org&module=http_2xx&debug=true" | grep -v '^#'
chepner
  • 497,756
  • 71
  • 530
  • 681