Submitting Data to .asp from Within Perl
I am running a calendar script, written in Perl, on an NT server. The script serves as the master calendar for hearing rooms for my employer.
The script is designed to send e-mail to event posters and to the calendar administrator (me) using sendmail, but our server administrator does not run sendmail. They do, however, have an .asp application that will take form input via "post" and e-mail it to any recipient specified in a particular hidden attribute in the form.
The question, then, is this: Is there a way I can write a little Perl subroutine that will automatically submit the contents of scalar variables from the main script to the .asp application as if the data were coming from a form -- thereby causing it shoot an e-mail to me? Basically, I want to be able to call this sub every time someone adds, deletes, or modifies an event. Obviously, I can work out the mechanics of placing the subroutine calls in the main script. But I don't know exactly how to go about writing the subroutine itself. Any ideas?
I may be wrong here, but I think that ASP processing can only be done via the WEB server, hence to get the ASP to process your input your PERL will need to talk to the WEB server like it's a browser and POST the details via the server.
This sounds like a lot of work! How does the ASP post its message. Can you port that into PERL?
Hope this is a start,
|All times are GMT +1. The time now is 04:12 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.