Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Different answers for script and browser (LWP)

by Sly_G (Novice)
on Jun 18, 2013 at 18:43 UTC ( [id://1039627]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use LWP::UserAgent;
    use HTTP::Cookies;
    ...
      $res = $ua->get("http://www.giftman.ru/show.php?id=$ren");
      print $res->header('Location')."\n";
    }
    
  2. or download this
    GET /show.php?id=294 HTTP/1.1
    Host: www.giftman.ru
    ...
    Accept-Encoding: gzip, deflate
    Cookie: __utma=83753984.1287093182.1370328704.1371539232.1371576574.7;
    + __utmz=83753984.1370328704.1.1.utmcsr=(direct)|utmccn=(direct)|utmcm
    +d=(none); __utmb=83753984.10.10.1371576574; _ym_visorc=w; PHPSESSID=4
    +p0ql1mitskhkbg3os47v1hc11; __utmc=83753984
    Connection: keep-alive
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-20 00:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found