I have a F# console app (.Net 5) sending http requests via FSharp.Data and I haven't found a way to log the raw http requests. I tried using the F# .Net 6 web app template and enabling HttpLogging, but this won't log my http requests executed in the code. Other tools like fiddler or wireshark are not an option because of work policies.
Is there a way to enable such logging, for example in this minimal example console app?
open FSharp.Data
[<EntryPoint>]
let main argv =
let html = Http.Request("http://tomasp.net")
printfn "%s" (html.ToString())
0