Solved

HTTP Post

Posted on 2000-02-15
3
155 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: 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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
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.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
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).

623 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