There is LWP::Curl which is the LWP API with the curl engine underneath.
With LWP there are some debug options (untested, from memory):
use LWP::ConsoleLogger::Easy qw( debug_ua ); use LWP::UserAgent; my $ua = LWP::UserAgent->new(...); debug_ua($ua, 10); ...
This should print out the headers of any request. That said, if you have a working curl command-line then curl2lwp is your best bet to convert it to a working LWP-based perl script. It worked for me every time.
btw, it does not look like you need cookie persistence (as per your curl command) but if you do:
use LWP::UserAgent; use HTTP::Cookies; my $cookies = HTTP::Cookies->new(file =>'./cookies.txt'); my $ua = LWP::UserAgent->new(...); $ua->cookie_jar($cookies);
Also, perhaps you want to try resolve the error Bareword "Types::Serialiser::Error::" refers to nonexistent package... by reinstalling Types::Serialiser? I am not sure how to resolve it.
bw, bliako
In reply to Re: Problems with MS Graph
by bliako
in thread Problems with MS Graph
by PeterKaagman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |