logging req an res
Majklas opened this issue · comments
Hi,
can I get what I'm sending in a file? Like the actual call log.
I don't quite understand what you mean - what's a call log?
If you have the request and response bodies it's easy enough to var_dump
them and/or their methods to see what the headers and such are. Are you looking for something more than that?
all the post or get I'm sending, I need to get all the trasnfer in a file. like the actual curl data.
Is there a method/function to get all of this?
If you need to do this for security, compliance, or auditing reasons, I would recommend setting up a HTTP proxy which logs everything.
If not, then I think following this SO answer might help you: https://stackoverflow.com/a/51377114/2490608
You just need to use $curl->setDefaultOptions
instead of curl_setopt
.
ok, I'll try. Thank you, you may delete this ticket.