[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Sending info to different program on same machine/different ports



I would like to send a string of info from one server to another server
(same machine/different ports) but rather than return the html that the
second server (program) outputs automatically I would like to send a
canned message like "Thanks for submitting your info." I want it should
go like this:

1. user submits form info through my cgi (server 1)

2. my cgi sends the info in the form of a "get" call to the program on
server 2 (port 8010)

  (ex=
http://144.91.193.94:8010/program.cgi?Name=Sammy+G+3&AccountEnabled=1)

3. though server 2 does output a legit html message I would like to
suppress this and send canned message back to the user's browser.

Questions:

1. how to connect to server 2 and pass the args as shown above from
within my cgi?

2. how to discard standard output from server 2 and replace with my own?

This seems very weird I'm sure, but I can't think of any (better!!) way
to do this :)

TIA,

Samuel

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch