Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by wazoox (Prior)
on Jul 01, 2016 at 15:35 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-16 18:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found