Go Back   CodingForums.com > :: Server side development > Perl/ CGI

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-07-2002, 10:49 PM   PM User | #1
Avenger
New to the CF scene

 
Join Date: Oct 2002
Location: Madison, WI
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Avenger is an unknown quantity at this point
Question 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?
Avenger is offline   Reply With Quote
Old 10-14-2002, 12:40 PM   PM User | #2
fivesidecube
New Coder

 
Join Date: Sep 2002
Location: Up North (UK)
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
fivesidecube is an unknown quantity at this point
Avenger,

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,

Fivesidecube.
fivesidecube is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:42 AM.


Advertisement
Log in to turn off these ads.