Closed scottchiefbaker closed 3 years ago
There's the poor-man's debugger: sprinkle Data::Dumper (or Data::Printer or Devel::DDCWarn) statements in HTTP::Tiny's code. And then there's the real debugger :)
The key bit, I believe, is dumping $request
right after the call to _prepare_headers_and_cb
and before write_request
.
That indeed helped... I printed out the headers and it wasn't sending the auth piece at all. Upgraded my HTTP::Tiny
and I'm good to go. Thank you!
I have a REST API doing basic realm authentication that's returning invalid user/pwd. I can run:
and get JSON back just fine. Fetching that same URL with
HTTP::Tiny
gives me an auth error. Is there a way to turn on debugging to show what headers/content was sent as part of the request? I'm flying blind without being able to see what is sent.