Help for this page

Select Code to Download


  1. or download this
    $ curl -I https://auth.example.com --cookie-jar ./cookie.txt --basic -
    +-user somedude
    200 OK
    ...
    # This file was generated by libcurl! Edit at your own risk.
    
    #HttpOnly_auth.example.com    FALSE    /    TRUE    1492227302    sess
    +ion    mdkfUHAUnjdfj[...]
    
  2. or download this
    #!env perl
    
    ...
    my $cookies_file = defined($ARGV[0]) ? $ARGV[0] : exit ;
    my $Netscape_cookie_jar = HTTP::Cookies::Netscape->new( file => $cooki
    +es_file );
    print $Netscape_cookie_jar->as_string;