Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ASP
Re: Capture sessionID in browser from perl script
 

Index | Next | Previous | View Flat


sudarshan12s at gmail

Jun 18, 2009, 11:54 PM


Views: 8468
Permalink
Re: Capture sessionID in browser from perl script [In reply to]

Hi,
The cookies would be stored in the cookie store mentioned, cookies.dat.
You can aswell check errors for every call. In mycase if need not
check the sessionid, but just pass the obtained sessionid embedded in
the further web requests

let me know what u find

thanks
pavan

On Fri, Jun 19, 2009 at 12:10 PM, aura networks<laki.sreekanth [at] gmail> wrote:
>
> My Perl code:
>
> #!/usr/bin/perl -w
>
> use HTTP::Cookies;
> use HTTP::Request::Common;
> use LWP::UserAgent;
>
> $ua = new LWP::UserAgent;
> if(! $ua)
> {
> print "Can not get the page :UserAgent fialed \n";
> return 0;
> }
>
> my $cookies=new HTTP::Cookies(file=>'./cookies.dat',autosave=>1);
> $ua->cookie_jar($cookies);
> # push does all magic to exrtact cookies and add to header for further reqs.
> useragent should be newer
> push @{ $ua->requests_redirectable }, 'POST';
> $result = $ua->request(POST " http://erail.in http://erail.in ");
> print $result;
> ______________
> Through this program i am not able to capture the Session id/cookie value
> from the opened site(in the script)
> I am getting this output: HTTP::Response=HASH(0xacc640)
>
> Please suggest me how to capture the session-id....
>
> Thanks,
> Lakshmi Sreekanth
> --
> View this message in context: http://www.nabble.com/Capture-sessionID-in-browser-from-perl-script-tp22822820p24106307.html
> Sent from the Apache - Asp mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: asp-unsubscribe [at] perl
> For additional commands, e-mail: asp-help [at] perl
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe [at] perl
For additional commands, e-mail: asp-help [at] perl

Subject User Time
Capture sessionID in browser from perl script sudarshan12s at gmail Apr 1, 2009, 2:24 AM
    Re: Capture sessionID in browser from perl script tchatzi at arx Apr 1, 2009, 2:50 AM
        Re: Capture sessionID in browser from perl script sudarshan12s at gmail Apr 3, 2009, 7:05 AM
    Re: Capture sessionID in browser from perl script tchatzi at arx Apr 3, 2009, 7:25 AM
        Re: Capture sessionID in browser from perl script sudarshan12s at gmail Apr 8, 2009, 10:23 PM
    Re: Capture sessionID in browser from perl script tchatzi at arx Apr 9, 2009, 2:36 AM
        Re: Capture sessionID in browser from perl script laki.sreekanth at gmail Jun 18, 2009, 11:34 PM
        Re: Capture sessionID in browser from perl script laki.sreekanth at gmail Jun 18, 2009, 11:40 PM
            Re: Capture sessionID in browser from perl script sudarshan12s at gmail Jun 18, 2009, 11:54 PM
    Re: Capture sessionID in browser from perl script laki.sreekanth at gmail Jun 19, 2009, 4:33 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.