libwww $url->equery question

Daniel Canham (dcanham@rochgrp.com)
Thu, 31 Jul 1997 12:12:19 -0400


I would appreciate anyone's help out there with proper syntax for a
libwww question.

I'm trying to extract an escaped query string from a secure server that
I'm working with.  The code that allows me to get a html page from the
same server is as follows:


# subroutine to capture html text from a specific page
sub cap_html
{
    # initializing the user agent
    my $useragent = new LWP::UserAgent;
     # setting the user agent value
     $useragent->agent("project/1.0");
     # initializing the request value
     my $request = new HTTP::Request("GET", $requestpage);
     # sending request with login name and password
     $request->authorization_basic("username","password");
     # setting value of the response variable
     my $response = $useragent->request($request);
     # checking to see if there is a good response
     if($response->is_success)
     {
          # setting the html capture variablethe html received
          $html_capture = $response->content;
     }
     else
     {
          # printing the error received
          print "HTML Error:  " . $response->message . "\n";
     }
}


This code works fine, I'm having problems getting the same thing to work
using the

URI::URL::  $url->equery

I want to be able to retreive the query string, anyone have any sample
code they could post??

                                    -Dan