Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. perl -e '
  2. > use XMLTV;
  3. > use LWP;
  4. > use Data::Dumper;
  5. > my $ua = LWP::UserAgent->new();
  6. > $ua->agent("xmltv/$XMLTV::VERSION");
  7. > $ua->env_proxy();
  8. > my $response = $ua->get("http://xmltv.se/countries.xml");
  9. > print "response is: " . Dumper($response)
  10. > '
  11. response is: $VAR1 = bless( {
  12. '_rc' => '200',
  13. '_headers' => bless( {
  14. 'accept-ranges' => 'bytes',
  15. 'last-modified' => 'Sat, 24 Mar 2018 16:33:45 GMT',
  16. 'client-response-num' => 1,
  17. '::std_case' => {
  18. 'client-response-num' => 'Client-Response-Num',
  19. 'cf-ray' => 'CF-RAY',
  20. 'client-date' => 'Client-Date',
  21. 'set-cookie' => 'Set-Cookie',
  22. 'client-peer' => 'Client-Peer'
  23. },
  24. 'server' => 'cloudflare',
  25. 'set-cookie' => '__cfduid=d9f1f42d5f2ccdca7e365e46c78892b541530626115; expires=Wed, 03-Jul-19 13:55:15 GMT; path=/; domain=.xmltv.se; HttpOnly',
  26. 'client-peer' => '104.31.94.173:80',
  27. 'connection' => 'close',
  28. 'etag' => '"5ab67de9-326"',
  29. 'date' => 'Tue, 03 Jul 2018 13:55:15 GMT',
  30. 'client-date' => 'Tue, 03 Jul 2018 13:55:15 GMT',
  31. 'cf-ray' => '4349d945e7486b73-LHR',
  32. 'content-type' => 'text/xml',
  33. 'content-length' => '806'
  34. }, 'HTTP::Headers' ),
  35. '_msg' => 'OK',
  36. '_request' => bless( {
  37. '_uri_canonical' => bless( do{\(my $o = 'http://xmltv.se/countries.xml')}, 'URI::http' ),
  38. '_content' => '',
  39. '_uri' => $VAR1->{'_request'}{'_uri_canonical'},
  40. '_headers' => bless( {
  41. 'user-agent' => 'xmltv/0.5.67'
  42. }, 'HTTP::Headers' ),
  43. '_method' => 'GET'
  44. }, 'HTTP::Request' ),
  45. '_content' => '<?xml version="1.0" encoding="UTF-8"?>
  46. <tv generator-info-name="manual">
  47. <country id="Austria">Austria</country>
  48. <country id="Croatia">Croatia</country>
  49. <country id="Denmark">Denmark</country>
  50. <country id="Estonia">Estonia</country>
  51. <country id="Finland">Finland</country>
  52. <country id="Germany">Germany</country>
  53. <country id="Hungary">Hungary</country>
  54. <country id="Latvia">Latvia</country>
  55. <country id="Lithuania">Lithuania</country>
  56. <country id="Netherlands">Netherlands</country>
  57. <country id="Norway">Norway</country>
  58. <country id="Poland">Poland</country>
  59. <country id="Sweden">Sweden</country>
  60. <country id="Switzerland">Switzerland</country>
  61. <country id="RADIO">All Radio stations</country>
  62. <country id="TV">All TV Channels</country>
  63. </tv>',
  64. '_protocol' => 'HTTP/1.1'
  65. }, 'HTTP::Response' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement