in reply to Re: sending URL + query string to server?
in thread sending URL + query string to server?

Thanks! This helps a lot.

I think this is the last question. Is it possible to access the fields of a HTML form upon submission within a Perl subroutine? Or do I need send the form to a CGI script which in turn passes on modified parameters to the server? As you can see, I'm wanting to filter information sent to the server.

Again, thanks. LWP::UserAgent appears to be just want I needed.

  • Comment on Re^2: sending URL + query string to server?

Replies are listed 'Best First'.
Re^3: sending URL + query string to server?
by almut (Canon) on Jun 02, 2009 at 23:48 UTC
    Is it possible to access the fields of a HTML form upon submission within a Perl subroutine?

    The question here is: where would that Perl code be running? How would it receive the requests (form submissions) to filter?

    So yes, one way to do it would be to set up a proxy web server, and then use the CGI approach you're considering. I.e. the CGI program would receive the requests, parse, manipulate and reassemble the query string, and send it as a new request to the target server.

    If setting up a dedicated webserver (like Apache) seems like overkill for that purpose, you might consider using HTTP::Proxy, or some such...