Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

LWP::UserAgent doesn't send my HTTP::Cookies

by wazoox (Prior)
on Jul 01, 2016 at 15:35 UTC ( #1167006=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
          . $result->decoded_content . "\n"
          . $result->status_line . "\n";
    }
    
  2. or download this
    # Save cookie
    my ( $cookie ) = ($result->header('Set-Cookie') =~ m((PHPSESSID=\w+);)
    +);
    ...
        GET => "https://$option->{hostname}/storiqone-backend/api/v1/archi
    +ve/" );
    $request->content_type('application/json');
    $request->header('Cookie' => $cookie);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1167006]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2022-10-01 11:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (126 votes). Check out past polls.

    Notices?