[dodgers]$ curl https://secondroad.harvestapp.com/account/who_am_i -H +'Accept: application/xml' -H 'Content-Type: application/xml' -u ellio +tt.williams@secondroad.com.au:***** <?xml version="1.0" encoding="UTF-8"?> <hash> <user> <admin type="boolean">true</admin> <timestamp-timers type="boolean">false</timestamp-timers> <email>elliott.williams@secondroad.com.au</email> <id type="integer">111331</id> <timezone>Sydney</timezone> </user> </hash>
[dodgers]$ perl perl_requests.pl % Total % Received % Xferd Average Speed Time Time Time + Current Dload Upload Total Spent Left + Speed 0 38 0 38 0 0 214 0 --:--:-- --:--:-- --:--: +-- 0 Authentication failed for API request.[dodgers]$
#!/usr/bin/perl my $xml = qx{curl https://secondroad.harvestapp.com/account/who_am_i - +H 'Accept: application/xml' -H 'Content-Type: application/xml' -u ell +iott.williams@secondroad.com.au:*****}; print $xml;
In reply to Re^2: https request i got the cURL working
by elliottw
in thread https request i got the cURL working
by elliottw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |