Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

HTTP Post

Posted on 2000-02-15
3
Medium Priority
?
162 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 200 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

963 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