develooper Front page | perl.libwww | Postings from September 2001

open URL in "new" window...

Kay Schenk
September 13, 2001 00:32
open URL in "new" window...
Message ID:

I've been experimenting a bit using HTTP and LWP from inside a cgi--an 
interactive form.  Does anyone know how to use LWP::UserAgent to open in 
a new browser window, a la something you can do in Javascript.

i.e I've got something like this...

  $ua = LWP::UserAgent -> new;
         $request= HTTP::Request->new(GET => '');

         ##from LWP
         $response= $ua ->request($request);

         # from HTTP::Message

===>>> how can I get this to a new window and not replace the one I've 
got open while running the exisitng form CGI?

         print "Content-type: text/html\n\n";

         print $response->content();

Thanks for any help? Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About