SPUG: Re: Can this even be done?

Asim Jalis asim at pair.com
Tue Jun 22 16:38:13 CDT 2004

On Tue, Jun 22, 2004 at 01:22:45PM -0700, Aaron W. West wrote:
> Sounds pretty trivial...shouldn't be hard with LWP. Grab the
> html, do a couple of replacements, then spew the text out to
> your CGI user.
> eg, replace "<input size=10 maxlength=10 name=TO>" with:
> "<input size=10 maxlength=10 name=TO value=\"$phone\">"
> You would also have to change: action="send_message_cgi.asp"
> to:
> action="http://storefront.metrocall.com/Send_a_Message/send_message_cgi.asp"
> Although I see little reason to do this.
> Why not display your own page to the user and post the
> information to the send_message_cgi.asp page from your perl
> script, then display the reponse to the user?

This sounds like it should work. If you go with the first
solution (grab and spew the text out to your CGI user) you should
also fix the image URLs in the HTML. For example, 

<img src="../assets/nav/biglogo.gif" 

should be replaced with,

<img src="http://storefront.metrocall.com/assets/nav/biglogo.gif" 

You could write a regular expression to do this to all the
images. Also you will need to do the same thing to all the href
links in the HTML.


More information about the spug-list mailing list