Solved

HTTP Post

Posted on 2000-02-15
3
151 Views
Last Modified: 2010-04-09
I want to use an HTTP post command to send an xml document to a cetain address, anyone have a clue how to do it?
0
Comment
Question by:rrivers
3 Comments
 
LVL 28

Expert Comment

by:sybe
ID: 2524849
You need to use some server side scripting (asp, perl) to do that. Post the form to that script, and handle it from there, that is, if you need to send the document as an attachment or with a certain mime-type.

With plain HTML you can only send plain text messages without attachment.




0
 

Author Comment

by:rrivers
ID: 2527505
Yes, I'm sorry I didn't make it clear that I understood that. But what I am asking is using a PERL script, how do I post to another server? I guess this is more a PERL question.
0
 

Accepted Solution

by:
tom_beale earned 100 total points
ID: 2549647
One way to do it is to have the PERL script generate a page with the necessary form and a field with the text as its value. At the end of the  script add the following line:

print "<SCRIPT Language='JavaScript'>document.forms[0].submit()</SCRIPT>";

This will trigger the submit on the
form and POST to the other server.


Another way to do it is to add the LWP module to PERL. The LWP module adds some objects to PERL that allow it to do GET/POST operations (directly from DOS or a terminal, yet) and capture the results in a variable.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Set differnt row widths in a table. 3 21
Html test in IIS 4 20
Why a span is lower 2 18
Create tabs to show divs 8 22
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now