Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2002
    Madison, WI
    Thanked 0 Times in 0 Posts

    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?

  2. #2
    New Coder
    Join Date
    Sep 2002
    Up North (UK)
    Thanked 0 Times in 0 Posts

    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,



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts